home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / Unreal Tournament 2004 / ut2004-winpatch3323.exe / UT2004-Patch / System / XGame.u / xPawn_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-07  |  65.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 74 9b 08 63 6c 61 73 73 |........|t..class|
|00000010| 20 78 50 61 77 6e 20 65 | 78 74 65 6e 64 73 20 55 | xPawn e|xtends U|
|00000020| 6e 72 65 61 6c 50 61 77 | 6e 0d 0a 20 20 20 20 63 |nrealPaw|n.. c|
|00000030| 6f 6e 66 69 67 28 55 73 | 65 72 29 0d 0a 20 20 20 |onfig(Us|er).. |
|00000040| 20 64 65 70 65 6e 64 73 | 4f 6e 28 78 55 74 69 6c | depends|On(xUtil|
|00000050| 29 0d 0a 20 20 20 20 64 | 65 70 65 6e 64 73 4f 6e |).. d|ependsOn|
|00000060| 28 78 50 61 77 6e 53 6f | 75 6e 64 47 72 6f 75 70 |(xPawnSo|undGroup|
|00000070| 29 0d 0a 20 20 20 20 64 | 65 70 65 6e 64 73 4f 6e |).. d|ependsOn|
|00000080| 28 78 50 61 77 6e 47 69 | 62 47 72 6f 75 70 29 3b |(xPawnGi|bGroup);|
|00000090| 0d 0a 0d 0a 23 65 78 65 | 63 20 4f 42 4a 20 4c 4f |....#exe|c OBJ LO|
|000000a0| 41 44 20 46 49 4c 45 3d | 47 61 6d 65 53 6f 75 6e |AD FILE=|GameSoun|
|000000b0| 64 73 2e 75 61 78 0d 0a | 23 65 78 65 63 20 4f 42 |ds.uax..|#exec OB|
|000000c0| 4a 20 4c 4f 41 44 20 46 | 49 4c 45 3d 50 6c 61 79 |J LOAD F|ILE=Play|
|000000d0| 65 72 53 6f 75 6e 64 73 | 2e 75 61 78 0d 0a 23 65 |erSounds|.uax..#e|
|000000e0| 78 65 63 20 4f 42 4a 20 | 4c 4f 41 44 20 46 49 4c |xec OBJ |LOAD FIL|
|000000f0| 45 3d 50 6c 61 79 65 72 | 46 6f 6f 74 53 74 65 70 |E=Player|FootStep|
|00000100| 73 2e 75 61 78 0d 0a 23 | 65 78 65 63 20 4f 42 4a |s.uax..#|exec OBJ|
|00000110| 20 4c 4f 41 44 20 46 49 | 4c 45 3d 44 61 6e 46 58 | LOAD FI|LE=DanFX|
|00000120| 2e 75 74 78 0d 0a 23 65 | 78 65 63 20 4f 42 4a 20 |.utx..#e|xec OBJ |
|00000130| 4c 4f 41 44 20 46 49 4c | 45 3d 47 65 6e 65 72 61 |LOAD FIL|E=Genera|
|00000140| 6c 41 6d 62 69 65 6e 63 | 65 2e 75 61 78 0d 0a 23 |lAmbienc|e.uax..#|
|00000150| 65 78 65 63 20 4f 42 4a | 20 4c 4f 41 44 20 46 49 |exec OBJ| LOAD FI|
|00000160| 4c 45 3d 47 65 6e 65 72 | 61 6c 49 6d 70 61 63 74 |LE=Gener|alImpact|
|00000170| 73 2e 75 61 78 0d 0a 23 | 65 78 65 63 20 4f 42 4a |s.uax..#|exec OBJ|
|00000180| 20 4c 4f 41 44 20 46 49 | 4c 45 3d 44 65 52 65 7a | LOAD FI|LE=DeRez|
|00000190| 2e 75 74 78 0d 0a 23 65 | 78 65 63 20 4f 42 4a 20 |.utx..#e|xec OBJ |
|000001a0| 4c 4f 41 44 20 46 49 4c | 45 3d 57 65 61 70 6f 6e |LOAD FIL|E=Weapon|
|000001b0| 53 6f 75 6e 64 73 2e 75 | 61 78 0d 0a 0d 0a 76 61 |Sounds.u|ax....va|
|000001c0| 72 20 69 6e 74 20 52 65 | 70 65 61 74 65 72 44 65 |r int Re|peaterDe|
|000001d0| 61 74 68 43 6f 75 6e 74 | 3b 0d 0a 0d 0a 76 61 72 |athCount|;....var|
|000001e0| 20 43 6f 6d 62 6f 20 43 | 75 72 72 65 6e 74 43 6f | Combo C|urrentCo|
|000001f0| 6d 62 6f 3b 0d 0a 76 61 | 72 20 62 6f 6f 6c 20 62 |mbo;..va|r bool b|
|00000200| 42 65 72 73 65 72 6b 3b | 0d 0a 76 61 72 20 62 6f |Berserk;|..var bo|
|00000210| 6f 6c 20 62 49 6e 76 69 | 73 3b 0d 0a 76 61 72 20 |ol bInvi|s;..var |
|00000220| 62 6f 6f 6c 20 62 4f 6c | 64 49 6e 76 69 73 3b 0d |bool bOl|dInvis;.|
|00000230| 0a 76 61 72 20 62 6f 6f | 6c 20 62 47 69 62 62 65 |.var boo|l bGibbe|
|00000240| 64 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 20 62 43 61 |d;..var |bool bCa|
|00000250| 6e 44 6f 64 67 65 44 6f | 75 62 6c 65 4a 75 6d 70 |nDodgeDo|ubleJump|
|00000260| 3b 0d 0a 76 61 72 20 62 | 6f 6f 6c 20 62 43 61 6e |;..var b|ool bCan|
|00000270| 42 6f 6f 73 74 44 6f 64 | 67 65 3b 0d 0a 76 61 72 |BoostDod|ge;..var|
|00000280| 20 62 6f 6f 6c 20 62 41 | 6c 72 65 61 64 79 53 65 | bool bA|lreadySe|
|00000290| 74 75 70 3b 0d 0a 76 61 | 72 20 62 6f 6f 6c 20 62 |tup;..va|r bool b|
|000002a0| 53 70 61 77 6e 49 6e 3b | 0d 0a 76 61 72 20 62 6f |SpawnIn;|..var bo|
|000002b0| 6f 6c 20 62 53 70 61 77 | 6e 44 6f 6e 65 3b 0d 0a |ol bSpaw|nDone;..|
|000002c0| 76 61 72 20 62 6f 6f 6c | 20 62 46 72 6f 7a 65 6e |var bool| bFrozen|
|000002d0| 42 6f 64 79 3b 0d 0a 76 | 61 72 20 62 6f 6f 6c 20 |Body;..v|ar bool |
|000002e0| 62 46 6c 61 6d 69 6e 67 | 3b 0d 0a 76 61 72 20 62 |bFlaming|;..var b|
|000002f0| 6f 6f 6c 20 62 52 75 62 | 62 65 72 79 3b 0d 0a 76 |ool bRub|bery;..v|
|00000300| 61 72 20 62 6f 6f 6c 20 | 62 43 6c 65 61 72 57 65 |ar bool |bClearWe|
|00000310| 61 70 6f 6e 4f 66 66 73 | 65 74 73 3b 09 09 2f 2f |aponOffs|ets;..//|
|00000320| 20 66 6f 72 20 63 65 72 | 74 61 69 6e 20 63 75 73 | for cer|tain cus|
|00000330| 74 6f 6d 20 70 6c 61 79 | 65 72 20 6d 6f 64 65 6c |tom play|er model|
|00000340| 73 0d 0a 0d 0a 76 61 72 | 28 55 44 61 6d 61 67 65 |s....var|(UDamage|
|00000350| 29 20 4d 61 74 65 72 69 | 61 6c 20 55 44 61 6d 61 |) Materi|al UDama|
|00000360| 67 65 57 65 61 70 6f 6e | 4d 61 74 65 72 69 61 6c |geWeapon|Material|
|00000370| 3b 20 20 20 20 20 20 20 | 20 20 2f 2f 20 57 65 61 |; | // Wea|
|00000380| 70 6f 6e 20 6f 76 65 72 | 6c 61 79 20 6d 61 74 65 |pon over|lay mate|
|00000390| 72 69 61 6c 0d 0a 76 61 | 72 28 55 44 61 6d 61 67 |rial..va|r(UDamag|
|000003a0| 65 29 20 53 6f 75 6e 64 | 20 55 44 61 6d 61 67 65 |e) Sound| UDamage|
|000003b0| 53 6f 75 6e 64 3b 0d 0a | 76 61 72 20 55 44 61 6d |Sound;..|var UDam|
|000003c0| 61 67 65 54 69 6d 65 72 | 20 55 44 61 6d 61 67 65 |ageTimer| UDamage|
|000003d0| 54 69 6d 65 72 3b 0d 0a | 76 61 72 20 66 6c 6f 61 |Timer;..|var floa|
|000003e0| 74 20 55 44 61 6d 61 67 | 65 54 69 6d 65 3b 0d 0a |t UDamag|eTime;..|
|000003f0| 76 61 72 20 66 6c 6f 61 | 74 20 4c 61 73 74 55 44 |var floa|t LastUD|
|00000400| 61 6d 61 67 65 53 6f 75 | 6e 64 54 69 6d 65 3b 0d |amageSou|ndTime;.|
|00000410| 0a 76 61 72 20 4d 61 74 | 65 72 69 61 6c 20 49 6e |.var Mat|erial In|
|00000420| 76 69 73 4d 61 74 65 72 | 69 61 6c 3b 0d 0a 0d 0a |visMater|ial;....|
|00000430| 76 61 72 28 53 68 69 65 | 6c 64 29 20 66 6c 6f 61 |var(Shie|ld) floa|
|00000440| 74 20 20 20 53 68 69 65 | 6c 64 53 74 72 65 6e 67 |t Shie|ldStreng|
|00000450| 74 68 4d 61 78 3b 20 20 | 20 20 20 20 20 20 20 20 |thMax; | |
|00000460| 20 20 20 20 20 2f 2f 20 | 6d 61 78 20 73 74 72 65 | // |max stre|
|00000470| 6e 67 74 68 0d 0a 76 61 | 72 20 66 6c 6f 61 74 20 |ngth..va|r float |
|00000480| 53 6d 61 6c 6c 53 68 69 | 65 6c 64 53 74 72 65 6e |SmallShi|eldStren|
|00000490| 67 74 68 3b 09 20 2f 2f | 20 66 6f 72 20 70 72 65 |gth;. //| for pre|
|000004a0| 76 65 6e 74 69 6e 67 20 | 73 68 69 65 6c 64 73 74 |venting |shieldst|
|000004b0| 61 63 6b 69 6e 67 0d 0a | 76 61 72 28 53 68 69 65 |acking..|var(Shie|
|000004c0| 6c 64 29 20 4d 61 74 65 | 72 69 61 6c 20 20 20 20 |ld) Mate|rial |
|000004d0| 53 68 69 65 6c 64 48 69 | 74 4d 61 74 3b 0d 0a 76 |ShieldHi|tMat;..v|
|000004e0| 61 72 28 53 68 69 65 6c | 64 29 20 66 6c 6f 61 74 |ar(Shiel|d) float|
|000004f0| 20 20 20 20 20 20 20 53 | 68 69 65 6c 64 48 69 74 | S|hieldHit|
|00000500| 4d 61 74 54 69 6d 65 3b | 0d 0a 0d 0a 76 61 72 20 |MatTime;|....var |
|00000510| 63 6c 61 73 73 3c 53 70 | 65 63 69 65 73 54 79 70 |class<Sp|eciesTyp|
|00000520| 65 3e 20 53 70 65 63 69 | 65 73 3b 0d 0a 0d 0a 76 |e> Speci|es;....v|
|00000530| 61 72 28 53 6f 75 6e 64 | 73 29 20 66 6c 6f 61 74 |ar(Sound|s) float|
|00000540| 20 47 72 75 6e 74 56 6f | 6c 75 6d 65 3b 0d 0a 76 | GruntVo|lume;..v|
|00000550| 61 72 28 53 6f 75 6e 64 | 73 29 20 66 6c 6f 61 74 |ar(Sound|s) float|
|00000560| 20 46 6f 6f 74 73 74 65 | 70 56 6f 6c 75 6d 65 3b | Footste|pVolume;|
|00000570| 0d 0a 0d 0a 76 61 72 20 | 74 72 61 6e 73 69 65 6e |....var |transien|
|00000580| 74 20 69 6e 74 20 20 20 | 53 69 6d 48 69 74 46 78 |t int |SimHitFx|
|00000590| 54 69 63 6b 65 72 3b 0d | 0a 0d 0a 76 61 72 28 47 |Ticker;.|...var(G|
|000005a0| 69 62 29 20 63 6c 61 73 | 73 3c 78 50 61 77 6e 47 |ib) clas|s<xPawnG|
|000005b0| 69 62 47 72 6f 75 70 3e | 20 47 69 62 47 72 6f 75 |ibGroup>| GibGrou|
|000005c0| 70 43 6c 61 73 73 3b 0d | 0a 76 61 72 28 47 69 62 |pClass;.|.var(Gib|
|000005d0| 29 20 69 6e 74 20 47 69 | 62 43 6f 75 6e 74 43 61 |) int Gi|bCountCa|
|000005e0| 6c 66 3b 0d 0a 76 61 72 | 28 47 69 62 29 20 69 6e |lf;..var|(Gib) in|
|000005f0| 74 20 47 69 62 43 6f 75 | 6e 74 46 6f 72 65 61 72 |t GibCou|ntForear|
|00000600| 6d 3b 0d 0a 76 61 72 28 | 47 69 62 29 20 69 6e 74 |m;..var(|Gib) int|
|00000610| 20 47 69 62 43 6f 75 6e | 74 48 65 61 64 3b 0d 0a | GibCoun|tHead;..|
|00000620| 76 61 72 28 47 69 62 29 | 20 69 6e 74 20 47 69 62 |var(Gib)| int Gib|
|00000630| 43 6f 75 6e 74 54 6f 72 | 73 6f 3b 0d 0a 76 61 72 |CountTor|so;..var|
|00000640| 28 47 69 62 29 20 69 6e | 74 20 47 69 62 43 6f 75 |(Gib) in|t GibCou|
|00000650| 6e 74 55 70 70 65 72 41 | 72 6d 3b 0d 0a 0d 0a 76 |ntUpperA|rm;....v|
|00000660| 61 72 20 66 6c 6f 61 74 | 20 4d 69 6e 54 69 6d 65 |ar float| MinTime|
|00000670| 42 65 74 77 65 65 6e 50 | 61 69 6e 53 6f 75 6e 64 |BetweenP|ainSound|
|00000680| 73 3b 0d 0a 76 61 72 20 | 6c 6f 63 61 6c 69 7a 65 |s;..var |localize|
|00000690| 64 20 73 74 72 69 6e 67 | 20 48 65 61 64 53 68 6f |d string| HeadSho|
|000006a0| 74 4d 65 73 73 61 67 65 | 3b 0d 0a 0d 0a 2f 2f 20 |tMessage|;....// |
|000006b0| 43 6f 6d 6d 6f 6e 20 73 | 6f 75 6e 64 73 0d 0a 0d |Common s|ounds...|
|000006c0| 0a 76 61 72 28 53 6f 75 | 6e 64 73 29 20 53 6f 75 |.var(Sou|nds) Sou|
|000006d0| 6e 64 20 20 20 53 6f 75 | 6e 64 46 6f 6f 74 73 74 |nd Sou|ndFootst|
|000006e0| 65 70 73 5b 31 31 5d 3b | 20 2f 2f 20 49 6e 64 65 |eps[11];| // Inde|
|000006f0| 78 65 64 20 62 79 20 45 | 53 75 72 66 61 63 65 54 |xed by E|SurfaceT|
|00000700| 79 70 65 73 20 28 73 6f | 72 72 79 20 61 62 6f 75 |ypes (so|rry abou|
|00000710| 74 20 74 68 65 20 6c 69 | 74 65 72 61 6c 29 2e 0d |t the li|teral)..|
|00000720| 0a 76 61 72 28 53 6f 75 | 6e 64 73 29 20 63 6c 61 |.var(Sou|nds) cla|
|00000730| 73 73 3c 78 50 61 77 6e | 53 6f 75 6e 64 47 72 6f |ss<xPawn|SoundGro|
|00000740| 75 70 3e 20 53 6f 75 6e | 64 47 72 6f 75 70 43 6c |up> Soun|dGroupCl|
|00000750| 61 73 73 3b 0d 0a 0d 0a | 76 61 72 20 63 6c 61 73 |ass;....|var clas|
|00000760| 73 3c 41 63 74 6f 72 3e | 20 20 20 20 54 65 6c 65 |s<Actor>| Tele|
|00000770| 70 6f 72 74 46 58 43 6c | 61 73 73 3b 0d 0a 76 61 |portFXCl|ass;..va|
|00000780| 72 20 63 6c 61 73 73 3c | 41 63 74 6f 72 3e 20 54 |r class<|Actor> T|
|00000790| 72 61 6e 73 45 66 66 65 | 63 74 73 5b 32 5d 3b 0d |ransEffe|cts[2];.|
|000007a0| 0a 0d 0a 76 61 72 20 78 | 57 65 61 70 6f 6e 41 74 |...var x|WeaponAt|
|000007b0| 74 61 63 68 6d 65 6e 74 | 20 57 65 61 70 6f 6e 41 |tachment| WeaponA|
|000007c0| 74 74 61 63 68 6d 65 6e | 74 3b 0d 0a 0d 0a 76 61 |ttachmen|t;....va|
|000007d0| 72 20 53 68 61 64 6f 77 | 50 72 6f 6a 65 63 74 6f |r Shadow|Projecto|
|000007e0| 72 20 50 6c 61 79 65 72 | 53 68 61 64 6f 77 3b 0d |r Player|Shadow;.|
|000007f0| 0a 0d 0a 76 61 72 20 69 | 6e 74 20 20 4d 75 6c 74 |...var i|nt Mult|
|00000800| 69 4a 75 6d 70 52 65 6d | 61 69 6e 69 6e 67 3b 0d |iJumpRem|aining;.|
|00000810| 0a 76 61 72 20 69 6e 74 | 20 20 4d 61 78 4d 75 6c |.var int| MaxMul|
|00000820| 74 69 4a 75 6d 70 3b 0d | 0a 76 61 72 20 69 6e 74 |tiJump;.|.var int|
|00000830| 20 20 4d 75 6c 74 69 4a | 75 6d 70 42 6f 6f 73 74 | MultiJ|umpBoost|
|00000840| 3b 20 2f 2f 20 64 65 70 | 65 6e 64 73 20 6f 6e 20 |; // dep|ends on |
|00000850| 74 68 65 20 74 6f 6c 65 | 72 61 6e 63 65 20 28 31 |the tole|rance (1|
|00000860| 30 30 29 0d 0a 0d 0a 76 | 61 72 20 6e 61 6d 65 20 |00)....v|ar name |
|00000870| 57 61 6c 6c 44 6f 64 67 | 65 41 6e 69 6d 73 5b 34 |WallDodg|eAnims[4|
|00000880| 5d 3b 0d 0a 76 61 72 20 | 6e 61 6d 65 20 49 64 6c |];..var |name Idl|
|00000890| 65 48 65 61 76 79 41 6e | 69 6d 3b 0d 0a 76 61 72 |eHeavyAn|im;..var|
|000008a0| 20 6e 61 6d 65 20 49 64 | 6c 65 52 69 66 6c 65 41 | name Id|leRifleA|
|000008b0| 6e 69 6d 3b 0d 0a 76 61 | 72 20 6e 61 6d 65 20 46 |nim;..va|r name F|
|000008c0| 69 72 65 48 65 61 76 79 | 52 61 70 69 64 41 6e 69 |ireHeavy|RapidAni|
|000008d0| 6d 3b 0d 0a 76 61 72 20 | 6e 61 6d 65 20 46 69 72 |m;..var |name Fir|
|000008e0| 65 48 65 61 76 79 42 75 | 72 73 74 41 6e 69 6d 3b |eHeavyBu|rstAnim;|
|000008f0| 0d 0a 76 61 72 20 6e 61 | 6d 65 20 46 69 72 65 52 |..var na|me FireR|
|00000900| 69 66 6c 65 52 61 70 69 | 64 41 6e 69 6d 3b 0d 0a |ifleRapi|dAnim;..|
|00000910| 76 61 72 20 6e 61 6d 65 | 20 46 69 72 65 52 69 66 |var name| FireRif|
|00000920| 6c 65 42 75 72 73 74 41 | 6e 69 6d 3b 0d 0a 76 61 |leBurstA|nim;..va|
|00000930| 72 20 6e 61 6d 65 20 46 | 69 72 65 52 6f 6f 74 42 |r name F|ireRootB|
|00000940| 6f 6e 65 3b 0d 0a 0d 0a | 76 61 72 20 65 6e 75 6d |one;....|var enum|
|00000950| 20 45 46 69 72 65 41 6e | 69 6d 53 74 61 74 65 0d | EFireAn|imState.|
|00000960| 0a 7b 0d 0a 20 20 20 20 | 46 53 5f 4e 6f 6e 65 2c |.{.. |FS_None,|
|00000970| 0d 0a 20 20 20 20 46 53 | 5f 50 6c 61 79 4f 6e 63 |.. FS|_PlayOnc|
|00000980| 65 2c 0d 0a 20 20 20 20 | 46 53 5f 4c 6f 6f 70 69 |e,.. |FS_Loopi|
|00000990| 6e 67 2c 0d 0a 20 20 20 | 20 46 53 5f 52 65 61 64 |ng,.. | FS_Read|
|000009a0| 79 0d 0a 7d 20 46 69 72 | 65 53 74 61 74 65 3b 0d |y..} Fir|eState;.|
|000009b0| 0a 0d 0a 76 61 72 20 4d | 65 73 68 20 53 6b 65 6c |...var M|esh Skel|
|000009c0| 65 74 6f 6e 4d 65 73 68 | 3b 0d 0a 76 61 72 20 62 |etonMesh|;..var b|
|000009d0| 6f 6f 6c 20 62 53 6b 65 | 6c 65 74 69 7a 65 64 3b |ool bSke|letized;|
|000009e0| 0d 0a 76 61 72 20 62 6f | 6f 6c 20 62 44 65 52 65 |..var bo|ol bDeRe|
|000009f0| 73 3b 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 44 65 |s;..var |float De|
|00000a00| 52 65 73 54 69 6d 65 3b | 0d 0a 76 61 72 20 45 6d |ResTime;|..var Em|
|00000a10| 69 74 74 65 72 20 44 65 | 52 65 73 46 58 3b 0d 0a |itter De|ResFX;..|
|00000a20| 76 61 72 20 4d 61 74 65 | 72 69 61 6c 20 44 65 52 |var Mate|rial DeR|
|00000a30| 65 73 4d 61 74 30 2c 20 | 44 65 52 65 73 4d 61 74 |esMat0, |DeResMat|
|00000a40| 31 3b 0d 0a 76 61 72 28 | 44 65 52 65 73 29 20 49 |1;..var(|DeRes) I|
|00000a50| 6e 74 65 72 70 43 75 72 | 76 65 20 44 65 52 65 73 |nterpCur|ve DeRes|
|00000a60| 4c 69 66 74 56 65 6c 3b | 20 2f 2f 20 73 70 65 65 |LiftVel;| // spee|
|00000a70| 64 20 28 6f 76 65 72 20 | 74 69 6d 65 29 20 61 74 |d (over |time) at|
|00000a80| 20 77 68 69 63 68 20 62 | 6f 64 79 20 72 69 73 65 | which b|ody rise|
|00000a90| 73 0d 0a 76 61 72 28 44 | 65 52 65 73 29 20 49 6e |s..var(D|eRes) In|
|00000aa0| 74 65 72 70 43 75 72 76 | 65 20 44 65 52 65 73 4c |terpCurv|e DeResL|
|00000ab0| 69 66 74 53 6f 66 74 6e | 65 73 73 3b 20 2f 2f 20 |iftSoftn|ess; // |
|00000ac0| 76 65 72 74 69 63 61 6c | 20 27 73 70 72 69 6e 79 |vertical| 'spriny|
|00000ad0| 6e 65 73 73 27 20 28 6f | 76 65 72 20 74 69 6d 65 |ness' (o|ver time|
|00000ae0| 29 20 6f 66 20 62 6f 6e | 65 20 6c 69 66 74 65 72 |) of bon|e lifter|
|00000af0| 73 0d 0a 76 61 72 28 44 | 65 52 65 73 29 20 66 6c |s..var(D|eRes) fl|
|00000b00| 6f 61 74 20 20 44 65 52 | 65 73 47 72 61 76 53 63 |oat DeR|esGravSc|
|00000b10| 61 6c 65 3b 20 2f 2f 20 | 72 65 64 75 63 65 20 67 |ale; // |reduce g|
|00000b20| 72 61 76 69 74 79 20 6f | 6e 20 63 6f 72 70 73 65 |ravity o|n corpse|
|00000b30| 20 64 75 72 69 6e 67 20 | 64 65 2d 72 65 73 0d 0a | during |de-res..|
|00000b40| 76 61 72 28 44 65 52 65 | 73 29 20 66 6c 6f 61 74 |var(DeRe|s) float|
|00000b50| 20 20 44 65 52 65 73 4c | 61 74 65 72 61 6c 46 72 | DeResL|ateralFr|
|00000b60| 69 63 74 69 6f 6e 3b 20 | 2f 2f 20 73 69 64 65 77 |iction; |// sidew|
|00000b70| 61 79 73 20 66 72 69 63 | 74 69 6f 6e 20 77 68 69 |ays fric|tion whi|
|00000b80| 6c 65 20 6c 69 66 74 69 | 6e 67 0d 0a 0d 0a 76 61 |le lifti|ng....va|
|00000b90| 72 28 4b 61 72 6d 61 29 | 20 66 6c 6f 61 74 20 52 |r(Karma)| float R|
|00000ba0| 61 67 64 6f 6c 6c 4c 69 | 66 65 53 70 61 6e 3b 20 |agdollLi|feSpan; |
|00000bb0| 2f 2f 20 4d 41 58 49 4d | 55 4d 20 74 69 6d 65 20 |// MAXIM|UM time |
|00000bc0| 74 68 65 20 72 61 67 64 | 6f 6c 6c 20 77 69 6c 6c |the ragd|oll will|
|00000bd0| 20 62 65 20 61 72 6f 75 | 6e 64 2e 20 44 65 2d 72 | be arou|nd. De-r|
|00000be0| 65 73 27 73 20 65 61 72 | 6c 79 20 69 66 20 69 74 |es's ear|ly if it|
|00000bf0| 20 63 6f 6d 65 73 20 74 | 6f 20 72 65 73 74 2e 0d | comes t|o rest..|
|00000c00| 0a 76 61 72 28 4b 61 72 | 6d 61 29 20 66 6c 6f 61 |.var(Kar|ma) floa|
|00000c10| 74 20 52 61 67 49 6e 76 | 49 6e 65 72 74 69 61 3b |t RagInv|Inertia;|
|00000c20| 20 2f 2f 20 55 73 65 20 | 74 6f 20 77 6f 72 6b 20 | // Use |to work |
|00000c30| 6f 75 74 20 68 6f 77 20 | 6d 75 63 68 20 27 73 70 |out how |much 'sp|
|00000c40| 69 6e 27 20 72 61 67 64 | 6f 6c 6c 20 67 65 74 73 |in' ragd|oll gets|
|00000c50| 20 6f 6e 20 64 65 61 74 | 68 2e 0d 0a 76 61 72 28 | on deat|h...var(|
|00000c60| 4b 61 72 6d 61 29 20 66 | 6c 6f 61 74 20 52 61 67 |Karma) f|loat Rag|
|00000c70| 44 65 61 74 68 56 65 6c | 3b 20 2f 2f 20 48 6f 77 |DeathVel|; // How|
|00000c80| 20 66 61 73 74 20 72 61 | 67 64 6f 6c 6c 20 6d 6f | fast ra|gdoll mo|
|00000c90| 76 65 73 20 75 70 6f 6e | 20 64 65 61 74 68 0d 0a |ves upon| death..|
|00000ca0| 76 61 72 28 4b 61 72 6d | 61 29 20 66 6c 6f 61 74 |var(Karm|a) float|
|00000cb0| 20 52 61 67 53 68 6f 6f | 74 53 74 72 65 6e 67 74 | RagShoo|tStrengt|
|00000cc0| 68 3b 20 2f 2f 20 48 6f | 77 20 6d 75 63 68 20 65 |h; // Ho|w much e|
|00000cd0| 66 66 65 63 74 20 73 68 | 6f 6f 74 69 6e 67 20 72 |ffect sh|ooting r|
|00000ce0| 61 67 64 6f 6c 6c 73 20 | 68 61 73 2e 20 42 65 20 |agdolls |has. Be |
|00000cf0| 63 61 72 65 66 75 6c 21 | 0d 0a 76 61 72 28 4b 61 |careful!|..var(Ka|
|00000d00| 72 6d 61 29 20 66 6c 6f | 61 74 20 52 61 67 53 70 |rma) flo|at RagSp|
|00000d10| 69 6e 53 63 61 6c 65 3b | 20 2f 2f 20 49 6e 63 72 |inScale;| // Incr|
|00000d20| 65 61 73 65 20 70 72 6f | 70 65 6e 73 69 74 79 20 |ease pro|pensity |
|00000d30| 74 6f 20 73 70 69 6e 20 | 61 72 6f 75 6e 64 20 5a |to spin |around Z|
|00000d40| 20 28 75 70 29 2e 0d 0a | 76 61 72 28 4b 61 72 6d | (up)...|var(Karm|
|00000d50| 61 29 20 66 6c 6f 61 74 | 20 52 61 67 44 65 61 74 |a) float| RagDeat|
|00000d60| 68 55 70 4b 69 63 6b 3b | 20 2f 2f 20 41 6d 6f 75 |hUpKick;| // Amou|
|00000d70| 6e 74 20 6f 66 20 75 70 | 77 61 72 64 73 20 6b 69 |nt of up|wards ki|
|00000d80| 63 6b 20 72 61 67 64 6f | 6c 6c 73 20 67 65 74 20 |ck ragdo|lls get |
|00000d90| 77 68 65 6e 20 74 68 65 | 79 20 64 69 65 0d 0a 76 |when the|y die..v|
|00000da0| 61 72 28 4b 61 72 6d 61 | 29 20 66 6c 6f 61 74 20 |ar(Karma|) float |
|00000db0| 52 61 67 47 72 61 76 53 | 63 61 6c 65 3b 0d 0a 0d |RagGravS|cale;...|
|00000dc0| 0a 76 61 72 28 4b 61 72 | 6d 61 29 20 6d 61 74 65 |.var(Kar|ma) mate|
|00000dd0| 72 69 61 6c 20 52 61 67 | 43 6f 6e 76 75 6c 73 65 |rial Rag|Convulse|
|00000de0| 4d 61 74 65 72 69 61 6c | 3b 0d 0a 0d 0a 2f 2f 20 |Material|;....// |
|00000df0| 52 61 67 64 6f 6c 6c 20 | 69 6d 70 61 63 74 20 73 |Ragdoll |impact s|
|00000e00| 6f 75 6e 64 73 2e 0d 0a | 76 61 72 28 4b 61 72 6d |ounds...|var(Karm|
|00000e10| 61 29 20 61 72 72 61 79 | 3c 73 6f 75 6e 64 3e 09 |a) array|<sound>.|
|00000e20| 09 52 61 67 49 6d 70 61 | 63 74 53 6f 75 6e 64 73 |.RagImpa|ctSounds|
|00000e30| 3b 0d 0a 76 61 72 28 4b | 61 72 6d 61 29 20 66 6c |;..var(K|arma) fl|
|00000e40| 6f 61 74 09 09 09 52 61 | 67 49 6d 70 61 63 74 53 |oat...Ra|gImpactS|
|00000e50| 6f 75 6e 64 49 6e 74 65 | 72 76 61 6c 3b 0d 0a 76 |oundInte|rval;..v|
|00000e60| 61 72 28 4b 61 72 6d 61 | 29 20 66 6c 6f 61 74 09 |ar(Karma|) float.|
|00000e70| 09 09 52 61 67 49 6d 70 | 61 63 74 56 6f 6c 75 6d |..RagImp|actVolum|
|00000e80| 65 3b 0d 0a 76 61 72 20 | 74 72 61 6e 73 69 65 6e |e;..var |transien|
|00000e90| 74 20 66 6c 6f 61 74 09 | 09 09 52 61 67 4c 61 73 |t float.|..RagLas|
|00000ea0| 74 53 6f 75 6e 64 54 69 | 6d 65 3b 0d 0a 0d 0a 76 |tSoundTi|me;....v|
|00000eb0| 61 72 20 73 74 72 69 6e | 67 20 52 61 67 64 6f 6c |ar strin|g Ragdol|
|00000ec0| 6c 4f 76 65 72 72 69 64 | 65 3b 0d 0a 0d 0a 2f 2f |lOverrid|e;....//|
|00000ed0| 20 74 72 61 6e 73 6c 6f | 63 61 74 65 20 65 66 66 | translo|cate eff|
|00000ee0| 65 63 74 0d 0a 76 61 72 | 20 63 6c 61 73 73 3c 41 |ect..var| class<A|
|00000ef0| 63 74 6f 72 3e 20 20 20 | 20 54 72 61 6e 73 4f 75 |ctor> | TransOu|
|00000f00| 74 45 66 66 65 63 74 5b | 32 5d 3b 0d 0a 0d 0a 76 |tEffect[|2];....v|
|00000f10| 61 72 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 4f 6c |ar Contr|oller Ol|
|00000f20| 64 43 6f 6e 74 72 6f 6c | 6c 65 72 3b 0d 0a 76 61 |dControl|ler;..va|
|00000f30| 72 20 4d 61 74 65 72 69 | 61 6c 20 52 65 61 6c 53 |r Materi|al RealS|
|00000f40| 6b 69 6e 73 5b 34 5d 3b | 0d 0a 76 61 72 20 63 6c |kins[4];|..var cl|
|00000f50| 61 73 73 3c 54 65 61 6d | 56 6f 69 63 65 50 61 63 |ass<Team|VoicePac|
|00000f60| 6b 3e 20 56 6f 69 63 65 | 43 6c 61 73 73 3b 0d 0a |k> Voice|Class;..|
|00000f70| 0d 0a 76 61 72 28 41 49 | 29 20 67 6c 6f 62 61 6c |..var(AI|) global|
|00000f80| 63 6f 6e 66 69 67 20 73 | 74 72 69 6e 67 20 50 6c |config s|tring Pl|
|00000f90| 61 63 65 64 43 68 61 72 | 61 63 74 65 72 4e 61 6d |acedChar|acterNam|
|00000fa0| 65 3b 0d 0a 76 61 72 20 | 67 6c 6f 62 61 6c 63 6f |e;..var |globalco|
|00000fb0| 6e 66 69 67 20 73 74 72 | 69 6e 67 20 50 6c 61 63 |nfig str|ing Plac|
|00000fc0| 65 64 46 65 6d 61 6c 65 | 43 68 61 72 61 63 74 65 |edFemale|Characte|
|00000fd0| 72 4e 61 6d 65 3b 0d 0a | 0d 0a 76 61 72 20 62 79 |rName;..|..var by|
|00000fe0| 74 65 20 54 65 61 6d 53 | 6b 69 6e 3b 09 09 2f 2f |te TeamS|kin;..//|
|00000ff0| 20 77 68 61 74 20 74 65 | 61 6d 27 73 20 73 6b 69 | what te|am's ski|
|00001000| 6e 20 69 73 20 63 75 72 | 72 65 6e 74 6c 79 20 73 |n is cur|rently s|
|00001010| 65 74 0d 0a 0d 0a 72 65 | 70 6c 69 63 61 74 69 6f |et....re|plicatio|
|00001020| 6e 0d 0a 7b 0d 0a 20 20 | 20 20 72 65 6c 69 61 62 |n..{.. | reliab|
|00001030| 6c 65 20 69 66 28 20 52 | 6f 6c 65 3d 3d 52 4f 4c |le if( R|ole==ROL|
|00001040| 45 5f 41 75 74 68 6f 72 | 69 74 79 20 29 0d 0a 09 |E_Author|ity )...|
|00001050| 09 62 49 6e 76 69 73 3b | 0d 0a 0d 0a 09 72 65 6c |.bInvis;|.....rel|
|00001060| 69 61 62 6c 65 20 69 66 | 28 20 62 4e 65 74 4f 77 |iable if|( bNetOw|
|00001070| 6e 65 72 20 26 26 20 28 | 52 6f 6c 65 3d 3d 52 4f |ner && (|Role==RO|
|00001080| 4c 45 5f 41 75 74 68 6f | 72 69 74 79 29 20 29 0d |LE_Autho|rity) ).|
|00001090| 0a 09 09 62 42 65 72 73 | 65 72 6b 2c 20 4d 61 78 |...bBers|erk, Max|
|000010a0| 4d 75 6c 74 69 4a 75 6d | 70 2c 20 4d 75 6c 74 69 |MultiJum|p, Multi|
|000010b0| 4a 75 6d 70 42 6f 6f 73 | 74 2c 20 62 43 61 6e 44 |JumpBoos|t, bCanD|
|000010c0| 6f 64 67 65 44 6f 75 62 | 6c 65 4a 75 6d 70 2c 20 |odgeDoub|leJump, |
|000010d0| 62 43 61 6e 42 6f 6f 73 | 74 44 6f 64 67 65 3b 0d |bCanBoos|tDodge;.|
|000010e0| 0a 0d 0a 09 72 65 6c 69 | 61 62 6c 65 20 69 66 28 |....reli|able if(|
|000010f0| 20 52 6f 6c 65 3d 3d 52 | 4f 4c 45 5f 41 75 74 68 | Role==R|OLE_Auth|
|00001100| 6f 72 69 74 79 20 29 0d | 0a 09 09 43 6c 69 65 6e |ority ).|...Clien|
|00001110| 74 53 65 74 55 44 61 6d | 61 67 65 54 69 6d 65 3b |tSetUDam|ageTime;|
|00001120| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00001130| 20 66 75 6e 63 74 69 6f | 6e 20 50 6c 61 79 57 61 | functio|n PlayWa|
|00001140| 69 74 69 6e 67 28 29 20 | 7b 7d 0d 0a 0d 0a 66 75 |iting() |{}....fu|
|00001150| 6e 63 74 69 6f 6e 20 52 | 6f 73 74 65 72 45 6e 74 |nction R|osterEnt|
|00001160| 72 79 20 47 65 74 50 6c | 61 63 65 64 52 6f 73 74 |ry GetPl|acedRost|
|00001170| 65 72 28 29 0d 0a 7b 0d | 0a 09 50 6c 61 79 65 72 |er()..{.|..Player|
|00001180| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001190| 43 68 61 72 61 63 74 65 | 72 4e 61 6d 65 20 3d 20 |Characte|rName = |
|000011a0| 50 6c 61 63 65 64 43 68 | 61 72 61 63 74 65 72 4e |PlacedCh|aracterN|
|000011b0| 61 6d 65 3b 0d 0a 09 72 | 65 74 75 72 6e 20 63 6c |ame;...r|eturn cl|
|000011c0| 61 73 73 27 78 52 6f 73 | 74 65 72 45 6e 74 72 79 |ass'xRos|terEntry|
|000011d0| 27 2e 73 74 61 74 69 63 | 2e 43 72 65 61 74 65 52 |'.static|.CreateR|
|000011e0| 6f 73 74 65 72 45 6e 74 | 72 79 43 68 61 72 61 63 |osterEnt|ryCharac|
|000011f0| 74 65 72 28 50 6c 61 63 | 65 64 43 68 61 72 61 63 |ter(Plac|edCharac|
|00001200| 74 65 72 4e 61 6d 65 29 | 3b 0d 0a 7d 0d 0a 0d 0a |terName)|;..}....|
|00001210| 66 75 6e 63 74 69 6f 6e | 20 50 6f 73 73 65 73 73 |function| Possess|
|00001220| 65 64 42 79 28 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |edBy(Con|troller |
|00001230| 43 29 0d 0a 7b 0d 0a 09 | 53 75 70 65 72 2e 50 6f |C)..{...|Super.Po|
|00001240| 73 73 65 73 73 65 64 42 | 79 28 43 29 3b 0d 0a 09 |ssessedB|y(C);...|
|00001250| 69 66 20 28 20 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |if ( Con|troller |
|00001260| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 4f 6c 64 |!= None |)....Old|
|00001270| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 3d 20 43 6f 6e |Controll|er = Con|
|00001280| 74 72 6f 6c 6c 65 72 3b | 0d 0a 7d 0d 0a 0d 0a 2f |troller;|..}..../|
|00001290| 2f 20 72 65 74 75 72 6e | 20 74 72 75 65 20 69 66 |/ return| true if|
|000012a0| 20 77 61 73 20 63 6f 6e | 74 72 6f 6c 6c 65 64 20 | was con|trolled |
|000012b0| 62 79 20 61 20 50 6c 61 | 79 65 72 20 28 41 49 20 |by a Pla|yer (AI |
|000012c0| 6f 72 20 68 75 6d 61 6e | 29 0d 0a 73 69 6d 75 6c |or human|)..simul|
|000012d0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 62 6f |ated fun|ction bo|
|000012e0| 6f 6c 20 57 61 73 50 6c | 61 79 65 72 50 61 77 6e |ol WasPl|ayerPawn|
|000012f0| 28 29 0d 0a 7b 0d 0a 09 | 72 65 74 75 72 6e 20 28 |()..{...|return (|
|00001300| 20 28 4f 6c 64 43 6f 6e | 74 72 6f 6c 6c 65 72 20 | (OldCon|troller |
|00001310| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 4f 6c 64 43 |!= None)| && OldC|
|00001320| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 62 49 73 50 6c 61 |ontrolle|r.bIsPla|
|00001330| 79 65 72 20 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |yer );..|}....fun|
|00001340| 63 74 69 6f 6e 20 44 6f | 54 72 61 6e 73 6c 6f 63 |ction Do|Transloc|
|00001350| 61 74 65 4f 75 74 28 56 | 65 63 74 6f 72 20 50 72 |ateOut(V|ector Pr|
|00001360| 65 76 4c 6f 63 61 74 69 | 6f 6e 29 0d 0a 7b 0d 0a |evLocati|on)..{..|
|00001370| 09 69 66 20 28 20 28 50 | 6c 61 79 65 72 52 65 70 |.if ( (P|layerRep|
|00001380| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 20 3d 3d 20 |lication|Info == |
|00001390| 4e 6f 6e 65 29 20 7c 7c | 20 28 50 6c 61 79 65 72 |None) ||| (Player|
|000013a0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000013b0| 54 65 61 6d 20 3d 3d 20 | 4e 6f 6e 65 29 20 7c 7c |Team == |None) |||
|000013c0| 20 28 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 | (Player|Replicat|
|000013d0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 2e 54 65 61 |ionInfo.|Team.Tea|
|000013e0| 6d 49 6e 64 65 78 20 3d | 3d 20 30 29 20 29 0d 0a |mIndex =|= 0) )..|
|000013f0| 09 09 53 70 61 77 6e 28 | 54 72 61 6e 73 4f 75 74 |..Spawn(|TransOut|
|00001400| 45 66 66 65 63 74 5b 30 | 5d 2c 20 73 65 6c 66 2c |Effect[0|], self,|
|00001410| 2c 20 50 72 65 76 4c 6f | 63 61 74 69 6f 6e 2c 20 |, PrevLo|cation, |
|00001420| 72 6f 74 61 74 6f 72 28 | 4c 6f 63 61 74 69 6f 6e |rotator(|Location|
|00001430| 20 2d 20 50 72 65 76 4c | 6f 63 61 74 69 6f 6e 29 | - PrevL|ocation)|
|00001440| 29 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 53 70 61 |);...els|e....Spa|
|00001450| 77 6e 28 54 72 61 6e 73 | 4f 75 74 45 66 66 65 63 |wn(Trans|OutEffec|
|00001460| 74 5b 31 5d 2c 20 73 65 | 6c 66 2c 2c 20 50 72 65 |t[1], se|lf,, Pre|
|00001470| 76 4c 6f 63 61 74 69 6f | 6e 2c 20 72 6f 74 61 74 |vLocatio|n, rotat|
|00001480| 6f 72 28 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 50 72 |or(Locat|ion - Pr|
|00001490| 65 76 4c 6f 63 61 74 69 | 6f 6e 29 29 3b 0d 0a 7d |evLocati|on));..}|
|000014a0| 0d 0a 0d 0a 2f 2f 20 53 | 65 74 20 75 70 20 64 65 |....// S|et up de|
|000014b0| 66 61 75 6c 74 20 62 6c | 65 6e 64 69 6e 67 20 70 |fault bl|ending p|
|000014c0| 61 72 61 6d 65 74 65 72 | 73 20 61 6e 64 20 70 6f |arameter|s and po|
|000014d0| 73 65 2e 20 45 6e 73 75 | 72 65 73 20 74 68 65 20 |se. Ensu|res the |
|000014e0| 6d 65 73 68 20 64 6f 65 | 73 6e 27 74 20 68 61 76 |mesh doe|sn't hav|
|000014f0| 65 20 6f 6e 6c 79 20 61 | 20 54 2d 70 6f 73 65 20 |e only a| T-pose |
|00001500| 77 68 65 6e 65 76 65 72 | 20 69 74 20 66 69 72 73 |whenever| it firs|
|00001510| 74 20 73 70 72 69 6e 67 | 73 20 69 6e 74 6f 20 76 |t spring|s into v|
|00001520| 69 65 77 2e 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |iew...si|mulated |
|00001530| 66 75 6e 63 74 69 6f 6e | 20 41 73 73 69 67 6e 49 |function| AssignI|
|00001540| 6e 69 74 69 61 6c 50 6f | 73 65 28 29 0d 0a 7b 0d |nitialPo|se()..{.|
|00001550| 0a 20 20 20 20 69 66 20 | 28 20 44 72 69 76 65 6e |. if |( Driven|
|00001560| 56 65 68 69 63 6c 65 20 | 21 3d 20 4e 6f 6e 65 20 |Vehicle |!= None |
|00001570| 29 0d 0a 20 20 20 20 7b | 0d 0a 09 09 69 66 20 28 |).. {|....if (|
|00001580| 20 48 61 73 41 6e 69 6d | 28 44 72 69 76 65 6e 56 | HasAnim|(DrivenV|
|00001590| 65 68 69 63 6c 65 2e 44 | 72 69 76 65 41 6e 69 6d |ehicle.D|riveAnim|
|000015a0| 29 20 29 0d 0a 09 09 09 | 4c 6f 6f 70 41 6e 69 6d |) ).....|LoopAnim|
|000015b0| 28 44 72 69 76 65 6e 56 | 65 68 69 63 6c 65 2e 44 |(DrivenV|ehicle.D|
|000015c0| 72 69 76 65 41 6e 69 6d | 2c 2c 20 30 2e 31 29 3b |riveAnim|,, 0.1);|
|000015d0| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 09 4c 6f 6f |....else|.....Loo|
|000015e0| 70 41 6e 69 6d 28 27 56 | 65 68 69 63 6c 65 5f 44 |pAnim('V|ehicle_D|
|000015f0| 72 69 76 69 6e 67 27 2c | 2c 20 30 2e 31 29 3b 0d |riving',|, 0.1);.|
|00001600| 0a 09 7d 0d 0a 09 65 6c | 73 65 0d 0a 09 09 54 77 |..}...el|se....Tw|
|00001610| 65 65 6e 41 6e 69 6d 28 | 4d 6f 76 65 6d 65 6e 74 |eenAnim(|Movement|
|00001620| 41 6e 69 6d 73 5b 30 5d | 2c 30 2e 30 29 3b 0d 0a |Anims[0]|,0.0);..|
|00001630| 09 41 6e 69 6d 42 6c 65 | 6e 64 50 61 72 61 6d 73 |.AnimBle|ndParams|
|00001640| 28 31 2c 20 31 2e 30 2c | 20 30 2e 32 2c 20 30 2e |(1, 1.0,| 0.2, 0.|
|00001650| 32 2c 20 27 42 69 70 30 | 31 20 53 70 69 6e 65 31 |2, 'Bip0|1 Spine1|
|00001660| 27 29 3b 0d 0a 20 20 20 | 20 42 6f 6e 65 52 65 66 |');.. | BoneRef|
|00001670| 72 65 73 68 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |resh();.|.}....si|
|00001680| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00001690| 20 44 65 73 74 72 6f 79 | 65 64 28 29 0d 0a 7b 0d | Destroy|ed()..{.|
|000016a0| 0a 20 20 20 20 69 66 28 | 20 50 6c 61 79 65 72 53 |. if(| PlayerS|
|000016b0| 68 61 64 6f 77 20 21 3d | 20 4e 6f 6e 65 20 29 0d |hadow !=| None ).|
|000016c0| 0a 20 20 20 20 20 20 20 | 20 50 6c 61 79 65 72 53 |. | PlayerS|
|000016d0| 68 61 64 6f 77 2e 44 65 | 73 74 72 6f 79 28 29 3b |hadow.De|stroy();|
|000016e0| 0d 0a 0d 0a 20 20 20 20 | 69 66 28 20 44 65 52 65 |.... |if( DeRe|
|000016f0| 73 46 58 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |sFX != N|one )...|
|00001700| 7b 0d 0a 09 09 44 65 52 | 65 73 46 58 2e 45 6d 69 |{....DeR|esFX.Emi|
|00001710| 74 74 65 72 73 5b 30 5d | 2e 53 6b 65 6c 65 74 61 |tters[0]|.Skeleta|
|00001720| 6c 4d 65 73 68 41 63 74 | 6f 72 20 3d 20 4e 6f 6e |lMeshAct|or = Non|
|00001730| 65 3b 0d 0a 09 09 44 65 | 52 65 73 46 58 2e 4b 69 |e;....De|ResFX.Ki|
|00001740| 6c 6c 28 29 3b 0d 0a 09 | 7d 0d 0a 0d 0a 20 20 20 |ll();...|}.... |
|00001750| 20 53 75 70 65 72 2e 44 | 65 73 74 72 6f 79 65 64 | Super.D|estroyed|
|00001760| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |();..}..|..simula|
|00001770| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 52 65 6d |ted func|tion Rem|
|00001780| 6f 76 65 46 6c 61 6d 69 | 6e 67 45 66 66 65 63 74 |oveFlami|ngEffect|
|00001790| 73 28 29 0d 0a 7b 0d 0a | 20 20 20 20 6c 6f 63 61 |s()..{..| loca|
|000017a0| 6c 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 20 20 20 20 |l int i;|.... |
|000017b0| 69 66 28 20 4c 65 76 65 | 6c 2e 4e 65 74 4d 6f 64 |if( Leve|l.NetMod|
|000017c0| 65 20 3d 3d 20 4e 4d 5f | 44 65 64 69 63 61 74 65 |e == NM_|Dedicate|
|000017d0| 64 53 65 72 76 65 72 20 | 29 0d 0a 20 20 20 20 20 |dServer |).. |
|000017e0| 20 20 20 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 20 20 | retur|n;.... |
|000017f0| 20 20 66 6f 72 28 20 69 | 3d 30 3b 20 69 3c 41 74 | for( i|=0; i<At|
|00001800| 74 61 63 68 65 64 2e 6c | 65 6e 67 74 68 3b 20 69 |tached.l|ength; i|
|00001810| 2b 2b 20 29 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |++ ).. | {.. |
|00001820| 20 20 20 20 20 69 66 28 | 20 41 74 74 61 63 68 65 | if(| Attache|
|00001830| 64 5b 69 5d 2e 49 73 41 | 28 27 78 45 6d 69 74 74 |d[i].IsA|('xEmitt|
|00001840| 65 72 27 29 20 26 26 20 | 21 41 74 74 61 63 68 65 |er') && |!Attache|
|00001850| 64 5b 69 5d 2e 49 73 41 | 28 27 42 6c 6f 6f 64 4a |d[i].IsA|('BloodJ|
|00001860| 65 74 27 29 29 0d 0a 20 | 20 20 20 20 20 20 20 7b |et')).. | {|
|00001870| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 78 45 |.. | xE|
|00001880| 6d 69 74 74 65 72 28 41 | 74 74 61 63 68 65 64 5b |mitter(A|ttached[|
|00001890| 69 5d 29 2e 6d 52 65 67 | 65 6e 20 3d 20 66 61 6c |i]).mReg|en = fal|
|000018a0| 73 65 3b 0d 0a 20 20 20 | 20 20 20 20 20 7d 0d 0a |se;.. | }..|
|000018b0| 20 20 20 20 7d 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 | }..}|....simu|
|000018c0| 6c 61 74 65 64 20 65 76 | 65 6e 74 20 50 68 79 73 |lated ev|ent Phys|
|000018d0| 69 63 73 56 6f 6c 75 6d | 65 43 68 61 6e 67 65 28 |icsVolum|eChange(|
|000018e0| 20 50 68 79 73 69 63 73 | 56 6f 6c 75 6d 65 20 4e | Physics|Volume N|
|000018f0| 65 77 56 6f 6c 75 6d 65 | 20 29 0d 0a 7b 0d 0a 20 |ewVolume| )..{.. |
|00001900| 20 20 20 69 66 20 28 20 | 4e 65 77 56 6f 6c 75 6d | if ( |NewVolum|
|00001910| 65 2e 62 57 61 74 65 72 | 56 6f 6c 75 6d 65 20 29 |e.bWater|Volume )|
|00001920| 0d 0a 20 20 20 20 20 20 | 20 20 52 65 6d 6f 76 65 |.. | Remove|
|00001930| 46 6c 61 6d 69 6e 67 45 | 66 66 65 63 74 73 28 29 |FlamingE|ffects()|
|00001940| 3b 0d 0a 20 20 20 20 53 | 75 70 65 72 2e 50 68 79 |;.. S|uper.Phy|
|00001950| 73 69 63 73 56 6f 6c 75 | 6d 65 43 68 61 6e 67 65 |sicsVolu|meChange|
|00001960| 28 4e 65 77 56 6f 6c 75 | 6d 65 29 3b 0d 0a 7d 0d |(NewVolu|me);..}.|
|00001970| 0a 0d 0a 2f 2a 20 72 65 | 74 75 72 6e 20 61 20 76 |.../* re|turn a v|
|00001980| 61 6c 75 65 20 28 74 79 | 70 69 63 61 6c 6c 79 20 |alue (ty|pically |
|00001990| 30 20 74 6f 20 31 29 20 | 61 64 6a 75 73 74 69 6e |0 to 1) |adjustin|
|000019a0| 67 20 70 61 77 6e 27 73 | 20 70 65 72 63 65 69 76 |g pawn's| perceiv|
|000019b0| 65 64 20 73 74 72 65 6e | 67 74 68 20 69 66 20 75 |ed stren|gth if u|
|000019c0| 6e 64 65 72 20 73 6f 6d | 65 20 73 70 65 63 69 61 |nder som|e specia|
|000019d0| 6c 20 69 6e 66 6c 75 65 | 6e 63 65 20 28 6c 69 6b |l influe|nce (lik|
|000019e0| 65 20 62 65 72 73 65 72 | 6b 29 0d 0a 2a 2f 0d 0a |e berser|k)..*/..|
|000019f0| 66 75 6e 63 74 69 6f 6e | 20 66 6c 6f 61 74 20 41 |function| float A|
|00001a00| 64 6a 75 73 74 65 64 53 | 74 72 65 6e 67 74 68 28 |djustedS|trength(|
|00001a10| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 62 42 65 72 |)..{...i|f ( bBer|
|00001a20| 73 65 72 6b 20 29 0d 0a | 09 09 72 65 74 75 72 6e |serk )..|..return|
|00001a30| 20 31 2e 30 3b 0d 0a 09 | 72 65 74 75 72 6e 20 30 | 1.0;...|return 0|
|00001a40| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00001a50| 20 44 65 61 63 74 69 76 | 61 74 65 53 70 61 77 6e | Deactiv|ateSpawn|
|00001a60| 50 72 6f 74 65 63 74 69 | 6f 6e 28 29 0d 0a 7b 0d |Protecti|on()..{.|
|00001a70| 0a 09 69 66 20 28 20 62 | 53 70 61 77 6e 44 6f 6e |..if ( b|SpawnDon|
|00001a80| 65 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 3b 0d 0a |e )....r|eturn;..|
|00001a90| 09 62 53 70 61 77 6e 44 | 6f 6e 65 20 3d 20 74 72 |.bSpawnD|one = tr|
|00001aa0| 75 65 3b 0d 0a 09 69 66 | 20 28 20 4c 65 76 65 6c |ue;...if| ( Level|
|00001ab0| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2d 20 53 |.TimeSec|onds - S|
|00001ac0| 70 61 77 6e 54 69 6d 65 | 20 3c 20 44 65 61 74 68 |pawnTime| < Death|
|00001ad0| 4d 61 74 63 68 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |Match(Le|vel.Game|
|00001ae0| 29 2e 53 70 61 77 6e 50 | 72 6f 74 65 63 74 69 6f |).SpawnP|rotectio|
|00001af0| 6e 54 69 6d 65 20 29 0d | 0a 09 7b 0d 0a 09 09 62 |nTime ).|..{....b|
|00001b00| 53 70 61 77 6e 49 6e 20 | 3d 20 74 72 75 65 3b 0d |SpawnIn |= true;.|
|00001b10| 0a 09 09 69 66 20 28 20 | 4f 76 65 72 6c 61 79 4d |...if ( |OverlayM|
|00001b20| 61 74 65 72 69 61 6c 20 | 3d 3d 20 53 68 69 65 6c |aterial |== Shiel|
|00001b30| 64 48 69 74 4d 61 74 20 | 29 0d 0a 09 09 09 53 65 |dHitMat |).....Se|
|00001b40| 74 4f 76 65 72 6c 61 79 | 4d 61 74 65 72 69 61 6c |tOverlay|Material|
|00001b50| 28 4e 6f 6e 65 2c 30 2c | 74 72 75 65 29 3b 0d 0a |(None,0,|true);..|
|00001b60| 09 09 53 70 61 77 6e 54 | 69 6d 65 20 3d 20 4c 65 |..SpawnT|ime = Le|
|00001b70| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 20 |vel.Time|Seconds |
|00001b80| 2d 20 44 65 61 74 68 4d | 61 74 63 68 28 4c 65 76 |- DeathM|atch(Lev|
|00001b90| 65 6c 2e 47 61 6d 65 29 | 2e 53 70 61 77 6e 50 72 |el.Game)|.SpawnPr|
|00001ba0| 6f 74 65 63 74 69 6f 6e | 54 69 6d 65 20 2d 20 31 |otection|Time - 1|
|00001bb0| 3b 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |;...}..}|....func|
|00001bc0| 74 69 6f 6e 20 50 6c 61 | 79 54 65 6c 65 70 6f 72 |tion Pla|yTelepor|
|00001bd0| 74 45 66 66 65 63 74 28 | 20 62 6f 6f 6c 20 62 4f |tEffect(| bool bO|
|00001be0| 75 74 2c 20 62 6f 6f 6c | 20 62 53 6f 75 6e 64 29 |ut, bool| bSound)|
|00001bf0| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 21 62 53 70 61 |..{...if| ( !bSpa|
|00001c00| 77 6e 49 6e 20 26 26 20 | 28 4c 65 76 65 6c 2e 54 |wnIn && |(Level.T|
|00001c10| 69 6d 65 53 65 63 6f 6e | 64 73 20 2d 20 53 70 61 |imeSecon|ds - Spa|
|00001c20| 77 6e 54 69 6d 65 20 3c | 20 44 65 61 74 68 4d 61 |wnTime <| DeathMa|
|00001c30| 74 63 68 28 4c 65 76 65 | 6c 2e 47 61 6d 65 29 2e |tch(Leve|l.Game).|
|00001c40| 53 70 61 77 6e 50 72 6f | 74 65 63 74 69 6f 6e 54 |SpawnPro|tectionT|
|00001c50| 69 6d 65 29 20 29 0d 0a | 09 7b 0d 0a 09 09 62 53 |ime) )..|.{....bS|
|00001c60| 70 61 77 6e 49 6e 20 3d | 20 74 72 75 65 3b 0d 0a |pawnIn =| true;..|
|00001c70| 09 09 53 65 74 4f 76 65 | 72 6c 61 79 4d 61 74 65 |..SetOve|rlayMate|
|00001c80| 72 69 61 6c 28 20 53 68 | 69 65 6c 64 48 69 74 4d |rial( Sh|ieldHitM|
|00001c90| 61 74 2c 20 44 65 61 74 | 68 4d 61 74 63 68 28 4c |at, Deat|hMatch(L|
|00001ca0| 65 76 65 6c 2e 47 61 6d | 65 29 2e 53 70 61 77 6e |evel.Gam|e).Spawn|
|00001cb0| 50 72 6f 74 65 63 74 69 | 6f 6e 54 69 6d 65 2c 20 |Protecti|onTime, |
|00001cc0| 66 61 6c 73 65 20 29 3b | 0d 0a 09 20 20 20 20 69 |false );|... i|
|00001cd0| 66 20 28 20 28 50 6c 61 | 79 65 72 52 65 70 6c 69 |f ( (Pla|yerRepli|
|00001ce0| 63 61 74 69 6f 6e 49 6e | 66 6f 20 3d 3d 20 4e 6f |cationIn|fo == No|
|00001cf0| 6e 65 29 20 7c 7c 20 28 | 50 6c 61 79 65 72 52 65 |ne) || (|PlayerRe|
|00001d00| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00001d10| 61 6d 20 3d 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |am == No|ne) || (|
|00001d20| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001d30| 6e 49 6e 66 6f 2e 54 65 | 61 6d 2e 54 65 61 6d 49 |nInfo.Te|am.TeamI|
|00001d40| 6e 64 65 78 20 3d 3d 20 | 30 29 20 29 0d 0a 09 09 |ndex == |0) )....|
|00001d50| 20 20 20 20 53 70 61 77 | 6e 28 54 72 61 6e 73 45 | Spaw|n(TransE|
|00001d60| 66 66 65 63 74 73 5b 30 | 5d 2c 2c 2c 4c 6f 63 61 |ffects[0|],,,Loca|
|00001d70| 74 69 6f 6e 20 2b 20 43 | 6f 6c 6c 69 73 69 6f 6e |tion + C|ollision|
|00001d80| 48 65 69 67 68 74 20 2a | 20 76 65 63 74 28 30 2c |Height *| vect(0,|
|00001d90| 30 2c 30 2e 37 35 29 29 | 3b 0d 0a 09 20 20 20 20 |0,0.75))|;... |
|00001da0| 65 6c 73 65 0d 0a 09 09 | 20 20 20 20 53 70 61 77 |else....| Spaw|
|00001db0| 6e 28 54 72 61 6e 73 45 | 66 66 65 63 74 73 5b 31 |n(TransE|ffects[1|
|00001dc0| 5d 2c 2c 2c 4c 6f 63 61 | 74 69 6f 6e 20 2b 20 43 |],,,Loca|tion + C|
|00001dd0| 6f 6c 6c 69 73 69 6f 6e | 48 65 69 67 68 74 20 2a |ollision|Height *|
|00001de0| 20 76 65 63 74 28 30 2c | 30 2c 30 2e 37 35 29 29 | vect(0,|0,0.75))|
|00001df0| 3b 0d 0a 09 7d 0d 0a 09 | 65 6c 73 65 20 69 66 20 |;...}...|else if |
|00001e00| 28 20 62 4f 75 74 20 29 | 0d 0a 09 09 44 6f 54 72 |( bOut )|....DoTr|
|00001e10| 61 6e 73 6c 6f 63 61 74 | 65 4f 75 74 28 4c 6f 63 |anslocat|eOut(Loc|
|00001e20| 61 74 69 6f 6e 29 3b 0d | 0a 09 65 6c 73 65 20 69 |ation);.|..else i|
|00001e30| 66 20 28 20 28 50 6c 61 | 79 65 72 52 65 70 6c 69 |f ( (Pla|yerRepli|
|00001e40| 63 61 74 69 6f 6e 49 6e | 66 6f 20 3d 3d 20 4e 6f |cationIn|fo == No|
|00001e50| 6e 65 29 20 7c 7c 20 28 | 50 6c 61 79 65 72 52 65 |ne) || (|PlayerRe|
|00001e60| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00001e70| 61 6d 20 3d 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |am == No|ne) || (|
|00001e80| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001e90| 6e 49 6e 66 6f 2e 54 65 | 61 6d 2e 54 65 61 6d 49 |nInfo.Te|am.TeamI|
|00001ea0| 6e 64 65 78 20 3d 3d 20 | 30 29 20 29 0d 0a 09 09 |ndex == |0) )....|
|00001eb0| 53 70 61 77 6e 28 54 72 | 61 6e 73 45 66 66 65 63 |Spawn(Tr|ansEffec|
|00001ec0| 74 73 5b 30 5d 2c 73 65 | 6c 66 2c 2c 4c 6f 63 61 |ts[0],se|lf,,Loca|
|00001ed0| 74 69 6f 6e 20 2b 20 43 | 6f 6c 6c 69 73 69 6f 6e |tion + C|ollision|
|00001ee0| 48 65 69 67 68 74 20 2a | 20 76 65 63 74 28 30 2c |Height *| vect(0,|
|00001ef0| 30 2c 30 2e 37 35 29 29 | 3b 0d 0a 09 65 6c 73 65 |0,0.75))|;...else|
|00001f00| 0d 0a 09 09 53 70 61 77 | 6e 28 54 72 61 6e 73 45 |....Spaw|n(TransE|
|00001f10| 66 66 65 63 74 73 5b 31 | 5d 2c 73 65 6c 66 2c 2c |ffects[1|],self,,|
|00001f20| 4c 6f 63 61 74 69 6f 6e | 20 2b 20 43 6f 6c 6c 69 |Location| + Colli|
|00001f30| 73 69 6f 6e 48 65 69 67 | 68 74 20 2a 20 76 65 63 |sionHeig|ht * vec|
|00001f40| 74 28 30 2c 30 2c 30 2e | 37 35 29 29 3b 0d 0a 20 |t(0,0,0.|75));.. |
|00001f50| 20 20 20 53 75 70 65 72 | 2e 50 6c 61 79 54 65 6c | Super|.PlayTel|
|00001f60| 65 70 6f 72 74 45 66 66 | 65 63 74 28 20 62 4f 75 |eportEff|ect( bOu|
|00001f70| 74 2c 20 62 53 6f 75 6e | 64 20 29 3b 0d 0a 7d 0d |t, bSoun|d );..}.|
|00001f80| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 6c 61 79 |...funct|ion Play|
|00001f90| 4d 6f 76 65 72 48 69 74 | 53 6f 75 6e 64 28 29 0d |MoverHit|Sound().|
|00001fa0| 0a 7b 0d 0a 09 50 6c 61 | 79 53 6f 75 6e 64 28 53 |.{...Pla|ySound(S|
|00001fb0| 6f 75 6e 64 47 72 6f 75 | 70 43 6c 61 73 73 2e 73 |oundGrou|pClass.s|
|00001fc0| 74 61 74 69 63 2e 47 65 | 74 48 69 74 53 6f 75 6e |tatic.Ge|tHitSoun|
|00001fd0| 64 28 29 2c 20 53 4c 4f | 54 5f 49 6e 74 65 72 61 |d(), SLO|T_Intera|
|00001fe0| 63 74 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |ct);..}.|...funct|
|00001ff0| 69 6f 6e 20 50 6c 61 79 | 44 79 69 6e 67 53 6f 75 |ion Play|DyingSou|
|00002000| 6e 64 28 29 0d 0a 7b 0d | 0a 09 2f 2f 20 44 6f 6e |nd()..{.|..// Don|
|00002010| 74 20 70 6c 61 79 20 64 | 79 69 6e 67 20 73 6f 75 |t play d|ying sou|
|00002020| 6e 64 20 69 66 20 61 20 | 73 6b 65 6c 65 74 6f 6e |nd if a |skeleton|
|00002030| 2e 20 54 72 69 63 6b 79 | 20 77 69 74 68 6f 75 74 |. Tricky| without|
|00002040| 20 76 6f 63 61 6c 20 63 | 68 6f 72 64 73 2e 0d 0a | vocal c|hords...|
|00002050| 09 69 66 20 28 20 62 53 | 6b 65 6c 65 74 69 7a 65 |.if ( bS|keletize|
|00002060| 64 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 3b 0d 0a |d )....r|eturn;..|
|00002070| 0d 0a 09 69 66 20 28 20 | 62 47 69 62 62 65 64 20 |...if ( |bGibbed |
|00002080| 29 0d 0a 09 7b 0d 0a 20 | 20 20 20 20 20 20 20 50 |)...{.. | P|
|00002090| 6c 61 79 53 6f 75 6e 64 | 28 47 69 62 47 72 6f 75 |laySound|(GibGrou|
|000020a0| 70 43 6c 61 73 73 2e 73 | 74 61 74 69 63 2e 47 69 |pClass.s|tatic.Gi|
|000020b0| 62 53 6f 75 6e 64 28 29 | 2c 20 53 4c 4f 54 5f 50 |bSound()|, SLOT_P|
|000020c0| 61 69 6e 2c 33 2e 35 2a | 54 72 61 6e 73 69 65 6e |ain,3.5*|Transien|
|000020d0| 74 53 6f 75 6e 64 56 6f | 6c 75 6d 65 2c 74 72 75 |tSoundVo|lume,tru|
|000020e0| 65 2c 35 30 30 29 3b 0d | 0a 09 09 72 65 74 75 72 |e,500);.|...retur|
|000020f0| 6e 3b 0d 0a 09 7d 0d 0a | 0d 0a 20 20 20 20 69 66 |n;...}..|.. if|
|00002100| 20 28 20 48 65 61 64 56 | 6f 6c 75 6d 65 2e 62 57 | ( HeadV|olume.bW|
|00002110| 61 74 65 72 56 6f 6c 75 | 6d 65 20 29 0d 0a 20 20 |aterVolu|me ).. |
|00002120| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 50 6c 61 | {.. | Pla|
|00002130| 79 53 6f 75 6e 64 28 47 | 65 74 53 6f 75 6e 64 28 |ySound(G|etSound(|
|00002140| 45 53 54 5f 44 72 6f 77 | 6e 29 2c 20 53 4c 4f 54 |EST_Drow|n), SLOT|
|00002150| 5f 50 61 69 6e 2c 32 2e | 35 2a 54 72 61 6e 73 69 |_Pain,2.|5*Transi|
|00002160| 65 6e 74 53 6f 75 6e 64 | 56 6f 6c 75 6d 65 2c 74 |entSound|Volume,t|
|00002170| 72 75 65 2c 35 30 30 29 | 3b 0d 0a 20 20 20 20 20 |rue,500)|;.. |
|00002180| 20 20 20 72 65 74 75 72 | 6e 3b 0d 0a 20 20 20 20 | retur|n;.. |
|00002190| 7d 0d 0a 0d 0a 09 50 6c | 61 79 53 6f 75 6e 64 28 |}.....Pl|aySound(|
|000021a0| 53 6f 75 6e 64 47 72 6f | 75 70 43 6c 61 73 73 2e |SoundGro|upClass.|
|000021b0| 73 74 61 74 69 63 2e 47 | 65 74 44 65 61 74 68 53 |static.G|etDeathS|
|000021c0| 6f 75 6e 64 28 29 2c 20 | 53 4c 4f 54 5f 50 61 69 |ound(), |SLOT_Pai|
|000021d0| 6e 2c 32 2e 35 2a 54 72 | 61 6e 73 69 65 6e 74 53 |n,2.5*Tr|ansientS|
|000021e0| 6f 75 6e 64 56 6f 6c 75 | 6d 65 2c 20 74 72 75 65 |oundVolu|me, true|
|000021f0| 2c 35 30 30 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |,500);..|}....fun|
|00002200| 63 74 69 6f 6e 20 47 61 | 73 70 28 29 0d 0a 7b 0d |ction Ga|sp()..{.|
|00002210| 0a 20 20 20 20 69 66 20 | 28 20 52 6f 6c 65 20 21 |. if |( Role !|
|00002220| 3d 20 52 4f 4c 45 5f 41 | 75 74 68 6f 72 69 74 79 |= ROLE_A|uthority|
|00002230| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 72 65 74 75 | ).. | retu|
|00002240| 72 6e 3b 0d 0a 20 20 20 | 20 69 66 20 28 20 42 72 |rn;.. | if ( Br|
|00002250| 65 61 74 68 54 69 6d 65 | 20 3c 20 32 20 29 0d 0a |eathTime| < 2 )..|
|00002260| 20 20 20 20 20 20 20 20 | 50 6c 61 79 53 6f 75 6e | |PlaySoun|
|00002270| 64 28 47 65 74 53 6f 75 | 6e 64 28 45 53 54 5f 47 |d(GetSou|nd(EST_G|
|00002280| 61 73 70 29 2c 20 53 4c | 4f 54 5f 49 6e 74 65 72 |asp), SL|OT_Inter|
|00002290| 61 63 74 29 3b 0d 0a 20 | 20 20 20 65 6c 73 65 0d |act);.. | else.|
|000022a0| 0a 20 20 20 20 20 20 20 | 20 50 6c 61 79 53 6f 75 |. | PlaySou|
|000022b0| 6e 64 28 47 65 74 53 6f | 75 6e 64 28 45 53 54 5f |nd(GetSo|und(EST_|
|000022c0| 42 72 65 61 74 68 65 41 | 67 61 69 6e 29 2c 20 53 |BreatheA|gain), S|
|000022d0| 4c 4f 54 5f 49 6e 74 65 | 72 61 63 74 29 3b 0d 0a |LOT_Inte|ract);..|
|000022e0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 43 6f |}....fun|ction Co|
|000022f0| 6e 74 72 6f 6c 6c 65 72 | 20 47 65 74 4b 69 6c 6c |ntroller| GetKill|
|00002300| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 28 29 0d 0a |erContro|ller()..|
|00002310| 7b 0d 0a 09 69 66 20 28 | 20 43 6f 6e 74 72 6f 6c |{...if (| Control|
|00002320| 6c 65 72 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ler != N|one )...|
|00002330| 09 72 65 74 75 72 6e 20 | 43 6f 6e 74 72 6f 6c 6c |.return |Controll|
|00002340| 65 72 3b 0d 0a 09 69 66 | 20 28 20 4f 6c 64 43 6f |er;...if| ( OldCo|
|00002350| 6e 74 72 6f 6c 6c 65 72 | 20 21 3d 20 4e 6f 6e 65 |ntroller| != None|
|00002360| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 4f 6c 64 | )....re|turn Old|
|00002370| 43 6f 6e 74 72 6f 6c 6c | 65 72 3b 0d 0a 09 72 65 |Controll|er;...re|
|00002380| 74 75 72 6e 20 4e 6f 6e | 65 3b 0d 0a 7d 0d 0a 0d |turn Non|e;..}...|
|00002390| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|000023a0| 63 74 69 6f 6e 20 69 6e | 74 20 47 65 74 54 65 61 |ction in|t GetTea|
|000023b0| 6d 4e 75 6d 28 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |mNum()..|{...if (|
|000023c0| 20 43 6f 6e 74 72 6f 6c | 6c 65 72 20 21 3d 20 4e | Control|ler != N|
|000023d0| 6f 6e 65 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |one )...|.return |
|000023e0| 43 6f 6e 74 72 6f 6c 6c | 65 72 2e 47 65 74 54 65 |Controll|er.GetTe|
|000023f0| 61 6d 4e 75 6d 28 29 3b | 0d 0a 09 69 66 20 28 20 |amNum();|...if ( |
|00002400| 28 44 72 69 76 65 6e 56 | 65 68 69 63 6c 65 20 21 |(DrivenV|ehicle !|
|00002410| 3d 20 4e 6f 6e 65 29 20 | 26 26 20 28 44 72 69 76 |= None) |&& (Driv|
|00002420| 65 6e 56 65 68 69 63 6c | 65 2e 43 6f 6e 74 72 6f |enVehicl|e.Contro|
|00002430| 6c 6c 65 72 20 21 3d 20 | 4e 6f 6e 65 29 20 29 0d |ller != |None) ).|
|00002440| 0a 09 09 72 65 74 75 72 | 6e 20 44 72 69 76 65 6e |...retur|n Driven|
|00002450| 56 65 68 69 63 6c 65 2e | 43 6f 6e 74 72 6f 6c 6c |Vehicle.|Controll|
|00002460| 65 72 2e 47 65 74 54 65 | 61 6d 4e 75 6d 28 29 3b |er.GetTe|amNum();|
|00002470| 0d 0a 09 69 66 20 28 20 | 4f 6c 64 43 6f 6e 74 72 |...if ( |OldContr|
|00002480| 6f 6c 6c 65 72 20 21 3d | 20 4e 6f 6e 65 20 29 0d |oller !=| None ).|
|00002490| 0a 09 09 72 65 74 75 72 | 6e 20 4f 6c 64 43 6f 6e |...retur|n OldCon|
|000024a0| 74 72 6f 6c 6c 65 72 2e | 47 65 74 54 65 61 6d 4e |troller.|GetTeamN|
|000024b0| 75 6d 28 29 3b 0d 0a 09 | 69 66 20 28 20 28 50 6c |um();...|if ( (Pl|
|000024c0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000024d0| 6e 66 6f 20 3d 3d 20 4e | 6f 6e 65 29 20 7c 7c 20 |nfo == N|one) || |
|000024e0| 28 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |(PlayerR|eplicati|
|000024f0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 3d 20 4e |onInfo.T|eam == N|
|00002500| 6f 6e 65 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |one) )..|..return|
|00002510| 20 32 35 35 3b 0d 0a 09 | 72 65 74 75 72 6e 20 50 | 255;...|return P|
|00002520| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00002530| 49 6e 66 6f 2e 54 65 61 | 6d 2e 54 65 61 6d 49 6e |Info.Tea|m.TeamIn|
|00002540| 64 65 78 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |dex;..}.|...funct|
|00002550| 69 6f 6e 20 54 65 61 6d | 49 6e 66 6f 20 47 65 74 |ion Team|Info Get|
|00002560| 54 65 61 6d 28 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |Team()..|{...if (|
|00002570| 20 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 | PlayerR|eplicati|
|00002580| 6f 6e 49 6e 66 6f 20 21 | 3d 20 4e 6f 6e 65 20 29 |onInfo !|= None )|
|00002590| 0d 0a 09 09 72 65 74 75 | 72 6e 20 50 6c 61 79 65 |....retu|rn Playe|
|000025a0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000025b0| 2e 54 65 61 6d 3b 0d 0a | 09 69 66 20 28 20 28 44 |.Team;..|.if ( (D|
|000025c0| 72 69 76 65 6e 56 65 68 | 69 63 6c 65 20 21 3d 20 |rivenVeh|icle != |
|000025d0| 4e 6f 6e 65 29 20 26 26 | 20 28 44 72 69 76 65 6e |None) &&| (Driven|
|000025e0| 56 65 68 69 63 6c 65 2e | 50 6c 61 79 65 72 52 65 |Vehicle.|PlayerRe|
|000025f0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 20 21 3d |plicatio|nInfo !=|
|00002600| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 09 72 65 74 75 | None) )|....retu|
|00002610| 72 6e 20 44 72 69 76 65 | 6e 56 65 68 69 63 6c 65 |rn Drive|nVehicle|
|00002620| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00002630| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 3b 0d 0a 09 69 |onInfo.T|eam;...i|
|00002640| 66 20 28 20 28 4f 6c 64 | 43 6f 6e 74 72 6f 6c 6c |f ( (Old|Controll|
|00002650| 65 72 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |er != No|ne) && (|
|00002660| 4f 6c 64 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 50 6c |OldContr|oller.Pl|
|00002670| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00002680| 6e 66 6f 20 21 3d 20 4e | 6f 6e 65 29 20 29 0d 0a |nfo != N|one) )..|
|00002690| 09 09 72 65 74 75 72 6e | 20 4f 6c 64 43 6f 6e 74 |..return| OldCont|
|000026a0| 72 6f 6c 6c 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |roller.P|layerRep|
|000026b0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|000026c0| 6d 3b 0d 0a 09 72 65 74 | 75 72 6e 20 4e 6f 6e 65 |m;...ret|urn None|
|000026d0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|000026e0| 20 52 65 6d 6f 76 65 50 | 6f 77 65 72 75 70 73 28 | RemoveP|owerups(|
|000026f0| 29 0d 0a 7b 0d 0a 20 20 | 20 20 69 66 20 28 43 75 |)..{.. | if (Cu|
|00002700| 72 72 65 6e 74 43 6f 6d | 62 6f 20 21 3d 20 4e 6f |rrentCom|bo != No|
|00002710| 6e 65 29 0d 0a 20 20 20 | 20 7b 0d 0a 09 09 43 75 |ne).. | {....Cu|
|00002720| 72 72 65 6e 74 43 6f 6d | 62 6f 2e 44 65 73 74 72 |rrentCom|bo.Destr|
|00002730| 6f 79 28 29 3b 0d 0a 09 | 09 69 66 20 28 20 43 6f |oy();...|.if ( Co|
|00002740| 6e 74 72 6f 6c 6c 65 72 | 20 21 3d 20 4e 6f 6e 65 |ntroller| != None|
|00002750| 20 29 0d 0a 09 09 09 43 | 6f 6e 74 72 6f 6c 6c 65 | ).....C|ontrolle|
|00002760| 72 2e 41 64 72 65 6e 61 | 6c 69 6e 65 20 3d 20 30 |r.Adrena|line = 0|
|00002770| 3b 0d 0a 09 7d 0d 0a 20 | 20 20 20 69 66 20 28 20 |;...}.. | if ( |
|00002780| 55 44 61 6d 61 67 65 54 | 69 6d 65 72 20 21 3d 20 |UDamageT|imer != |
|00002790| 4e 6f 6e 65 20 29 0d 0a | 20 20 20 20 7b 0d 0a 09 |None )..| {...|
|000027a0| 09 55 44 61 6d 61 67 65 | 54 69 6d 65 72 2e 44 65 |.UDamage|Timer.De|
|000027b0| 73 74 72 6f 79 28 29 3b | 0d 0a 09 09 44 69 73 61 |stroy();|....Disa|
|000027c0| 62 6c 65 55 44 61 6d 61 | 67 65 28 29 3b 0d 0a 09 |bleUDama|ge();...|
|000027d0| 7d 0d 0a 0d 0a 20 20 20 | 20 53 75 70 65 72 2e 52 |}.... | Super.R|
|000027e0| 65 6d 6f 76 65 50 6f 77 | 65 72 75 70 73 28 29 3b |emovePow|erups();|
|000027f0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00002800| 20 66 75 6e 63 74 69 6f | 6e 20 54 69 63 6b 46 58 | functio|n TickFX|
|00002810| 28 66 6c 6f 61 74 20 44 | 65 6c 74 61 54 69 6d 65 |(float D|eltaTime|
|00002820| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |)..{...l|ocal int|
|00002830| 20 69 2c 4e 75 6d 53 6b | 69 6e 73 3b 0d 0a 0d 0a | i,NumSk|ins;....|
|00002840| 20 20 20 20 69 66 20 28 | 20 53 69 6d 48 69 74 46 | if (| SimHitF|
|00002850| 78 54 69 63 6b 65 72 20 | 21 3d 20 48 69 74 46 78 |xTicker |!= HitFx|
|00002860| 54 69 63 6b 65 72 20 29 | 0d 0a 20 20 20 20 7b 0d |Ticker )|.. {.|
|00002870| 0a 20 20 20 20 20 20 20 | 20 50 72 6f 63 65 73 73 |. | Process|
|00002880| 48 69 74 46 58 28 29 3b | 0d 0a 20 20 20 20 7d 0d |HitFX();|.. }.|
|00002890| 0a 0d 0a 09 69 66 28 62 | 49 6e 76 69 73 20 26 26 |....if(b|Invis &&|
|000028a0| 20 21 62 4f 6c 64 49 6e | 76 69 73 29 20 2f 2f 20 | !bOldIn|vis) // |
|000028b0| 47 6f 69 6e 67 20 69 6e | 76 69 73 69 62 6c 65 0d |Going in|visible.|
|000028c0| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 4c 65 66 74 |..{....i|f ( Left|
|000028d0| 28 73 74 72 69 6e 67 28 | 53 6b 69 6e 73 5b 30 5d |(string(|Skins[0]|
|000028e0| 29 2c 32 31 29 20 7e 3d | 20 22 55 54 32 30 30 34 |),21) ~=| "UT2004|
|000028f0| 50 6c 61 79 65 72 53 6b | 69 6e 73 2e 58 61 6e 22 |PlayerSk|ins.Xan"|
|00002900| 20 29 0d 0a 09 09 09 53 | 6b 69 6e 73 5b 32 5d 20 | ).....S|kins[2] |
|00002910| 3d 20 4d 61 74 65 72 69 | 61 6c 28 44 79 6e 61 6d |= Materi|al(Dynam|
|00002920| 69 63 4c 6f 61 64 4f 62 | 6a 65 63 74 28 22 55 54 |icLoadOb|ject("UT|
|00002930| 32 30 30 34 50 6c 61 79 | 65 72 53 6b 69 6e 73 2e |2004Play|erSkins.|
|00002940| 58 61 6e 4d 6b 33 56 32 | 5f 61 62 64 6f 6d 65 6e |XanMk3V2|_abdomen|
|00002950| 22 2c 20 63 6c 61 73 73 | 27 4d 61 74 65 72 69 61 |", class|'Materia|
|00002960| 6c 27 29 29 3b 0d 0a 0d | 0a 09 09 2f 2f 20 53 61 |l'));...|...// Sa|
|00002970| 76 65 20 74 68 65 20 27 | 72 65 61 6c 27 20 6e 6f |ve the '|real' no|
|00002980| 6e 2d 69 6e 76 69 73 20 | 73 6b 69 6e 0d 0a 09 09 |n-invis |skin....|
|00002990| 4e 75 6d 53 6b 69 6e 73 | 20 3d 20 43 6c 61 6d 70 |NumSkins| = Clamp|
|000029a0| 28 53 6b 69 6e 73 2e 4c | 65 6e 67 74 68 2c 32 2c |(Skins.L|ength,2,|
|000029b0| 34 29 3b 0d 0a 0d 0a 09 | 09 66 6f 72 20 28 20 69 |4);.....|.for ( i|
|000029c0| 3d 30 3b 20 69 3c 4e 75 | 6d 53 6b 69 6e 73 3b 20 |=0; i<Nu|mSkins; |
|000029d0| 69 2b 2b 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 52 |i++ )...|.{.....R|
|000029e0| 65 61 6c 53 6b 69 6e 73 | 5b 69 5d 20 3d 20 53 6b |ealSkins|[i] = Sk|
|000029f0| 69 6e 73 5b 69 5d 3b 0d | 0a 09 09 09 53 6b 69 6e |ins[i];.|....Skin|
|00002a00| 73 5b 69 5d 20 3d 20 49 | 6e 76 69 73 4d 61 74 65 |s[i] = I|nvisMate|
|00002a10| 72 69 61 6c 3b 0d 0a 09 | 09 7d 0d 0a 0d 0a 09 09 |rial;...|.}......|
|00002a20| 2f 2f 20 52 65 6d 6f 76 | 65 2f 64 69 73 61 6c 6c |// Remov|e/disall|
|00002a30| 6f 77 20 70 72 6f 6a 65 | 63 74 6f 72 73 20 6f 6e |ow proje|ctors on|
|00002a40| 20 69 6e 76 69 73 69 62 | 6c 65 20 70 65 6f 70 6c | invisib|le peopl|
|00002a50| 65 0d 0a 09 09 50 72 6f | 6a 65 63 74 6f 72 73 2e |e....Pro|jectors.|
|00002a60| 52 65 6d 6f 76 65 28 30 | 2c 20 50 72 6f 6a 65 63 |Remove(0|, Projec|
|00002a70| 74 6f 72 73 2e 4c 65 6e | 67 74 68 29 3b 0d 0a 09 |tors.Len|gth);...|
|00002a80| 09 62 41 63 63 65 70 74 | 73 50 72 6f 6a 65 63 74 |.bAccept|sProject|
|00002a90| 6f 72 73 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 0d 0a |ors = fa|lse;....|
|00002aa0| 09 09 2f 2f 20 49 6e 76 | 69 73 69 62 6c 65 20 2d |..// Inv|isible -|
|00002ab0| 20 6e 6f 20 73 68 61 64 | 6f 77 0d 0a 09 09 69 66 | no shad|ow....if|
|00002ac0| 28 50 6c 61 79 65 72 53 | 68 61 64 6f 77 20 21 3d |(PlayerS|hadow !=|
|00002ad0| 20 4e 6f 6e 65 29 0d 0a | 09 09 09 50 6c 61 79 65 | None)..|...Playe|
|00002ae0| 72 53 68 61 64 6f 77 2e | 62 53 68 61 64 6f 77 41 |rShadow.|bShadowA|
|00002af0| 63 74 69 76 65 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |ctive = |false;..|
|00002b00| 0d 0a 09 09 2f 2f 20 4e | 6f 20 67 69 76 65 61 77 |....// N|o giveaw|
|00002b10| 61 79 20 66 6c 61 6d 65 | 73 20 65 69 74 68 65 72 |ay flame|s either|
|00002b20| 0d 0a 09 09 52 65 6d 6f | 76 65 46 6c 61 6d 69 6e |....Remo|veFlamin|
|00002b30| 67 45 66 66 65 63 74 73 | 28 29 3b 0d 0a 09 7d 0d |gEffects|();...}.|
|00002b40| 0a 09 65 6c 73 65 20 69 | 66 28 21 62 49 6e 76 69 |..else i|f(!bInvi|
|00002b50| 73 20 26 26 20 62 4f 6c | 64 49 6e 76 69 73 29 20 |s && bOl|dInvis) |
|00002b60| 2f 2f 20 47 6f 69 6e 67 | 20 76 69 73 69 62 6c 65 |// Going| visible|
|00002b70| 0d 0a 09 7b 0d 0a 09 09 | 4e 75 6d 53 6b 69 6e 73 |...{....|NumSkins|
|00002b80| 20 3d 20 43 6c 61 6d 70 | 28 53 6b 69 6e 73 2e 4c | = Clamp|(Skins.L|
|00002b90| 65 6e 67 74 68 2c 32 2c | 34 29 3b 0d 0a 0d 0a 09 |ength,2,|4);.....|
|00002ba0| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 4e 75 |.for ( i|=0; i<Nu|
|00002bb0| 6d 53 6b 69 6e 73 3b 20 | 69 2b 2b 20 29 0d 0a 09 |mSkins; |i++ )...|
|00002bc0| 09 09 53 6b 69 6e 73 5b | 69 5d 20 3d 20 52 65 61 |..Skins[|i] = Rea|
|00002bd0| 6c 53 6b 69 6e 73 5b 69 | 5d 3b 0d 0a 0d 0a 09 09 |lSkins[i|];......|
|00002be0| 62 41 63 63 65 70 74 73 | 50 72 6f 6a 65 63 74 6f |bAccepts|Projecto|
|00002bf0| 72 73 20 3d 20 44 65 66 | 61 75 6c 74 2e 62 41 63 |rs = Def|ault.bAc|
|00002c00| 63 65 70 74 73 50 72 6f | 6a 65 63 74 6f 72 73 3b |ceptsPro|jectors;|
|00002c10| 0d 0a 0d 0a 09 09 69 66 | 28 50 6c 61 79 65 72 53 |......if|(PlayerS|
|00002c20| 68 61 64 6f 77 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |hadow !=| None)..|
|00002c30| 09 09 09 50 6c 61 79 65 | 72 53 68 61 64 6f 77 2e |...Playe|rShadow.|
|00002c40| 62 53 68 61 64 6f 77 41 | 63 74 69 76 65 20 3d 20 |bShadowA|ctive = |
|00002c50| 74 72 75 65 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 62 4f |true;...|}.....bO|
|00002c60| 6c 64 49 6e 76 69 73 20 | 3d 20 62 49 6e 76 69 73 |ldInvis |= bInvis|
|00002c70| 3b 0d 0a 0d 0a 20 20 20 | 20 62 44 72 61 77 43 6f |;.... | bDrawCo|
|00002c80| 72 6f 6e 61 20 3d 20 28 | 20 21 62 4e 6f 43 6f 72 |rona = (| !bNoCor|
|00002c90| 6f 6e 61 73 20 26 26 20 | 21 62 49 6e 76 69 73 20 |onas && |!bInvis |
|00002ca0| 26 26 20 28 4c 65 76 65 | 6c 2e 4e 65 74 4d 6f 64 |&& (Leve|l.NetMod|
|00002cb0| 65 20 21 3d 20 4e 4d 5f | 44 65 64 69 63 61 74 65 |e != NM_|Dedicate|
|00002cc0| 64 53 65 72 76 65 72 29 | 09 26 26 20 21 62 50 6c |dServer)|.&& !bPl|
|00002cd0| 61 79 65 64 44 65 61 74 | 68 20 26 26 20 28 4c 65 |ayedDeat|h && (Le|
|00002ce0| 76 65 6c 2e 47 52 49 20 | 21 3d 20 4e 6f 6e 65 29 |vel.GRI |!= None)|
|00002cf0| 20 26 26 20 4c 65 76 65 | 6c 2e 47 52 49 2e 62 41 | && Leve|l.GRI.bA|
|00002d00| 6c 6c 6f 77 50 6c 61 79 | 65 72 4c 69 67 68 74 73 |llowPlay|erLights|
|00002d10| 0d 0a 09 09 09 09 09 26 | 26 20 28 50 6c 61 79 65 |.......&|& (Playe|
|00002d20| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00002d30| 20 21 3d 20 4e 6f 6e 65 | 29 20 29 3b 0d 0a 0d 0a | != None|) );....|
|00002d40| 0d 0a 09 69 66 20 28 20 | 62 44 72 61 77 43 6f 72 |...if ( |bDrawCor|
|00002d50| 6f 6e 61 20 26 26 20 28 | 50 6c 61 79 65 72 52 65 |ona && (|PlayerRe|
|00002d60| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00002d70| 61 6d 20 21 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |am != No|ne) )...|
|00002d80| 7b 0d 0a 09 09 69 66 20 | 28 20 50 6c 61 79 65 72 |{....if |( Player|
|00002d90| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00002da0| 54 65 61 6d 2e 54 65 61 | 6d 49 6e 64 65 78 20 3d |Team.Tea|mIndex =|
|00002db0| 3d 20 30 20 29 0d 0a 09 | 09 09 54 65 78 74 75 72 |= 0 )...|..Textur|
|00002dc0| 65 20 3d 20 54 65 78 74 | 75 72 65 27 52 65 64 4d |e = Text|ure'RedM|
|00002dd0| 61 72 6b 65 72 5f 74 27 | 3b 0d 0a 09 09 65 6c 73 |arker_t'|;....els|
|00002de0| 65 0d 0a 09 09 09 54 65 | 78 74 75 72 65 20 3d 20 |e.....Te|xture = |
|00002df0| 54 65 78 74 75 72 65 27 | 42 6c 75 65 4d 61 72 6b |Texture'|BlueMark|
|00002e00| 65 72 5f 74 27 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |er_t';..|.}..}...|
|00002e10| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|00002e20| 69 6f 6e 20 53 74 61 72 | 74 44 72 69 76 69 6e 67 |ion Star|tDriving|
|00002e30| 28 56 65 68 69 63 6c 65 | 20 56 29 0d 0a 7b 0d 0a |(Vehicle| V)..{..|
|00002e40| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 0d |.local i|nt i;...|
|00002e50| 0a 09 53 75 70 65 72 2e | 53 74 61 72 74 44 72 69 |..Super.|StartDri|
|00002e60| 76 69 6e 67 28 56 29 3b | 0d 0a 0d 0a 09 69 66 28 |ving(V);|.....if(|
|00002e70| 20 50 6c 61 79 65 72 53 | 68 61 64 6f 77 20 21 3d | PlayerS|hadow !=|
|00002e80| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 50 6c 61 79 65 | None ).|...Playe|
|00002e90| 72 53 68 61 64 6f 77 2e | 62 53 68 61 64 6f 77 41 |rShadow.|bShadowA|
|00002ea0| 63 74 69 76 65 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |ctive = |false;..|
|00002eb0| 0d 0a 09 69 66 20 28 20 | 57 65 61 70 6f 6e 41 74 |...if ( |WeaponAt|
|00002ec0| 74 61 63 68 6d 65 6e 74 | 20 21 3d 20 4e 6f 6e 65 |tachment| != None|
|00002ed0| 20 29 0d 0a 09 09 57 65 | 61 70 6f 6e 41 74 74 61 | )....We|aponAtta|
|00002ee0| 63 68 6d 65 6e 74 2e 48 | 69 64 65 28 74 72 75 65 |chment.H|ide(true|
|00002ef0| 29 3b 0d 0a 0d 0a 09 2f | 2f 68 61 63 6b 20 66 6f |);...../|/hack fo|
|00002f00| 72 20 73 74 69 63 6b 79 | 20 67 72 65 6e 61 64 65 |r sticky| grenade|
|00002f10| 73 0d 0a 09 66 6f 72 20 | 28 69 20 3d 20 30 3b 20 |s...for |(i = 0; |
|00002f20| 69 20 3c 20 41 74 74 61 | 63 68 65 64 2e 4c 65 6e |i < Atta|ched.Len|
|00002f30| 67 74 68 3b 20 69 2b 2b | 29 0d 0a 09 09 69 66 20 |gth; i++|)....if |
|00002f40| 28 50 72 6f 6a 65 63 74 | 69 6c 65 28 41 74 74 61 |(Project|ile(Atta|
|00002f50| 63 68 65 64 5b 69 5d 29 | 20 21 3d 20 4e 6f 6e 65 |ched[i])| != None|
|00002f60| 29 0d 0a 09 09 09 41 74 | 74 61 63 68 65 64 5b 69 |).....At|tached[i|
|00002f70| 5d 2e 53 65 74 42 61 73 | 65 28 4e 6f 6e 65 29 3b |].SetBas|e(None);|
|00002f80| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00002f90| 20 66 75 6e 63 74 69 6f | 6e 20 53 74 6f 70 44 72 | functio|n StopDr|
|00002fa0| 69 76 69 6e 67 28 56 65 | 68 69 63 6c 65 20 56 29 |iving(Ve|hicle V)|
|00002fb0| 0d 0a 7b 0d 0a 09 53 75 | 70 65 72 2e 53 74 6f 70 |..{...Su|per.Stop|
|00002fc0| 44 72 69 76 69 6e 67 28 | 56 29 3b 0d 0a 0d 0a 09 |Driving(|V);.....|
|00002fd0| 69 66 28 20 50 6c 61 79 | 65 72 53 68 61 64 6f 77 |if( Play|erShadow|
|00002fe0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 50 6c | != None| )....Pl|
|00002ff0| 61 79 65 72 53 68 61 64 | 6f 77 2e 62 53 68 61 64 |ayerShad|ow.bShad|
|00003000| 6f 77 41 63 74 69 76 65 | 20 3d 20 21 62 49 6e 76 |owActive| = !bInv|
|00003010| 69 73 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 57 65 61 |is;.....|if ( Wea|
|00003020| 70 6f 6e 41 74 74 61 63 | 68 6d 65 6e 74 20 21 3d |ponAttac|hment !=|
|00003030| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 57 65 61 70 6f | None ).|...Weapo|
|00003040| 6e 41 74 74 61 63 68 6d | 65 6e 74 2e 48 69 64 65 |nAttachm|ent.Hide|
|00003050| 28 66 61 6c 73 65 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |(false);|..}....s|
|00003060| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00003070| 6e 20 41 74 74 61 63 68 | 45 66 66 65 63 74 28 20 |n Attach|Effect( |
|00003080| 63 6c 61 73 73 3c 78 45 | 6d 69 74 74 65 72 3e 20 |class<xE|mitter> |
|00003090| 45 6d 69 74 74 65 72 43 | 6c 61 73 73 2c 20 4e 61 |EmitterC|lass, Na|
|000030a0| 6d 65 20 42 6f 6e 65 4e | 61 6d 65 2c 20 56 65 63 |me BoneN|ame, Vec|
|000030b0| 74 6f 72 20 4c 6f 63 61 | 74 69 6f 6e 2c 20 52 6f |tor Loca|tion, Ro|
|000030c0| 74 61 74 6f 72 20 52 6f | 74 61 74 69 6f 6e 20 29 |tator Ro|tation )|
|000030d0| 0d 0a 7b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 41 |..{.. | local A|
|000030e0| 63 74 6f 72 20 61 3b 0d | 0a 20 20 20 20 6c 6f 63 |ctor a;.|. loc|
|000030f0| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 0d 0a 20 20 20 |al int i|;.... |
|00003100| 20 69 66 28 20 62 53 6b | 65 6c 65 74 69 7a 65 64 | if( bSk|eletized|
|00003110| 20 7c 7c 20 28 42 6f 6e | 65 4e 61 6d 65 20 3d 3d | || (Bon|eName ==|
|00003120| 20 27 4e 6f 6e 65 27 29 | 20 29 0d 0a 20 20 20 20 | 'None')| ).. |
|00003130| 20 20 20 20 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 20 | retu|rn;.... |
|00003140| 20 20 20 66 6f 72 28 20 | 69 20 3d 20 30 3b 20 69 | for( |i = 0; i|
|00003150| 20 3c 20 41 74 74 61 63 | 68 65 64 2e 4c 65 6e 67 | < Attac|hed.Leng|
|00003160| 74 68 3b 20 69 2b 2b 20 | 29 0d 0a 20 20 20 20 7b |th; i++ |).. {|
|00003170| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 28 20 41 74 |.. | if( At|
|00003180| 74 61 63 68 65 64 5b 69 | 5d 20 3d 3d 20 4e 6f 6e |tached[i|] == Non|
|00003190| 65 20 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |e ).. | |
|000031a0| 20 63 6f 6e 74 69 6e 75 | 65 3b 0d 0a 0d 0a 20 20 | continu|e;.... |
|000031b0| 20 20 20 20 20 20 69 66 | 28 20 41 74 74 61 63 68 | if|( Attach|
|000031c0| 65 64 5b 69 5d 2e 41 74 | 74 61 63 68 6d 65 6e 74 |ed[i].At|tachment|
|000031d0| 42 6f 6e 65 20 21 3d 20 | 42 6f 6e 65 4e 61 6d 65 |Bone != |BoneName|
|000031e0| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | ).. | |
|000031f0| 63 6f 6e 74 69 6e 75 65 | 3b 0d 0a 0d 0a 20 20 20 |continue|;.... |
|00003200| 20 20 20 20 20 69 66 28 | 20 43 6c 61 73 73 49 73 | if(| ClassIs|
|00003210| 43 68 69 6c 64 4f 66 28 | 20 45 6d 69 74 74 65 72 |ChildOf(| Emitter|
|00003220| 43 6c 61 73 73 2c 20 41 | 74 74 61 63 68 65 64 5b |Class, A|ttached[|
|00003230| 69 5d 2e 43 6c 61 73 73 | 20 29 20 29 0d 0a 20 20 |i].Class| ) ).. |
|00003240| 20 20 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e | | return|
|00003250| 3b 0d 0a 20 20 20 20 7d | 0d 0a 0d 0a 20 20 20 20 |;.. }|.... |
|00003260| 61 20 3d 20 53 70 61 77 | 6e 28 20 45 6d 69 74 74 |a = Spaw|n( Emitt|
|00003270| 65 72 43 6c 61 73 73 2c | 2c 2c 20 4c 6f 63 61 74 |erClass,|,, Locat|
|00003280| 69 6f 6e 2c 20 52 6f 74 | 61 74 69 6f 6e 20 29 3b |ion, Rot|ation );|
|00003290| 0d 0a 0d 0a 20 20 20 20 | 69 66 28 20 21 41 74 74 |.... |if( !Att|
|000032a0| 61 63 68 54 6f 42 6f 6e | 65 28 20 61 2c 20 42 6f |achToBon|e( a, Bo|
|000032b0| 6e 65 4e 61 6d 65 20 29 | 20 29 0d 0a 20 20 20 20 |neName )| ).. |
|000032c0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 6c 6f 67 28 20 |{.. | log( |
|000032d0| 22 43 6f 75 6c 64 6e 27 | 74 20 61 74 74 61 63 68 |"Couldn'|t attach|
|000032e0| 20 22 24 45 6d 69 74 74 | 65 72 43 6c 61 73 73 24 | "$Emitt|erClass$|
|000032f0| 22 20 74 6f 20 22 24 42 | 6f 6e 65 4e 61 6d 65 2c |" to "$B|oneName,|
|00003300| 20 27 45 72 72 6f 72 27 | 20 29 3b 0d 0a 20 20 20 | 'Error'| );.. |
|00003310| 20 20 20 20 20 61 2e 44 | 65 73 74 72 6f 79 28 29 | a.D|estroy()|
|00003320| 3b 0d 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |;.. | retur|
|00003330| 6e 3b 0d 0a 20 20 20 20 | 7d 0d 0a 0d 0a 20 20 20 |n;.. |}.... |
|00003340| 20 66 6f 72 28 20 69 20 | 3d 20 30 3b 20 69 20 3c | for( i |= 0; i <|
|00003350| 20 41 74 74 61 63 68 65 | 64 2e 6c 65 6e 67 74 68 | Attache|d.length|
|00003360| 3b 20 69 2b 2b 20 29 0d | 0a 20 20 20 20 7b 0d 0a |; i++ ).|. {..|
|00003370| 20 20 20 20 20 20 20 20 | 69 66 28 20 41 74 74 61 | |if( Atta|
|00003380| 63 68 65 64 5b 69 5d 20 | 3d 3d 20 61 20 29 0d 0a |ched[i] |== a )..|
|00003390| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 72 65 61 | | brea|
|000033a0| 6b 3b 0d 0a 20 20 20 20 | 7d 0d 0a 0d 0a 20 20 20 |k;.. |}.... |
|000033b0| 20 61 2e 53 65 74 52 65 | 6c 61 74 69 76 65 52 6f | a.SetRe|lativeRo|
|000033c0| 74 61 74 69 6f 6e 28 20 | 52 6f 74 61 74 69 6f 6e |tation( |Rotation|
|000033d0| 20 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 | );..}..|..simula|
|000033e0| 74 65 64 20 65 76 65 6e | 74 20 53 65 74 48 65 61 |ted even|t SetHea|
|000033f0| 64 53 63 61 6c 65 28 66 | 6c 6f 61 74 20 4e 65 77 |dScale(f|loat New|
|00003400| 53 63 61 6c 65 29 0d 0a | 7b 0d 0a 09 48 65 61 64 |Scale)..|{...Head|
|00003410| 53 63 61 6c 65 20 3d 20 | 4e 65 77 53 63 61 6c 65 |Scale = |NewScale|
|00003420| 3b 0d 0a 09 53 65 74 42 | 6f 6e 65 53 63 61 6c 65 |;...SetB|oneScale|
|00003430| 28 34 2c 48 65 61 64 53 | 63 61 6c 65 2c 27 68 65 |(4,HeadS|cale,'he|
|00003440| 61 64 27 29 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |ad');..}|....simu|
|00003450| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 53 |lated fu|nction S|
|00003460| 70 61 77 6e 47 69 62 6c | 65 74 28 20 63 6c 61 73 |pawnGibl|et( clas|
|00003470| 73 3c 47 69 62 3e 20 47 | 69 62 43 6c 61 73 73 2c |s<Gib> G|ibClass,|
|00003480| 20 56 65 63 74 6f 72 20 | 4c 6f 63 61 74 69 6f 6e | Vector |Location|
|00003490| 2c 20 52 6f 74 61 74 6f | 72 20 52 6f 74 61 74 69 |, Rotato|r Rotati|
|000034a0| 6f 6e 2c 20 66 6c 6f 61 | 74 20 47 69 62 50 65 72 |on, floa|t GibPer|
|000034b0| 74 65 72 62 61 74 69 6f | 6e 20 29 0d 0a 7b 0d 0a |terbatio|n )..{..|
|000034c0| 20 20 20 20 6c 6f 63 61 | 6c 20 47 69 62 20 47 69 | loca|l Gib Gi|
|000034d0| 62 6c 65 74 3b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |blet;.. | local|
|000034e0| 20 56 65 63 74 6f 72 20 | 44 69 72 65 63 74 69 6f | Vector |Directio|
|000034f0| 6e 2c 20 44 75 6d 6d 79 | 3b 0d 0a 0d 0a 20 20 20 |n, Dummy|;.... |
|00003500| 20 69 66 28 20 28 47 69 | 62 43 6c 61 73 73 20 3d | if( (Gi|bClass =|
|00003510| 3d 20 4e 6f 6e 65 29 20 | 7c 7c 20 63 6c 61 73 73 |= None) ||| class|
|00003520| 27 47 61 6d 65 49 6e 66 | 6f 27 2e 73 74 61 74 69 |'GameInf|o'.stati|
|00003530| 63 2e 55 73 65 4c 6f 77 | 47 6f 72 65 28 29 20 29 |c.UseLow|Gore() )|
|00003540| 0d 0a 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e |.. | return|
|00003550| 3b 0d 0a 0d 0a 09 49 6e | 73 74 69 67 61 74 6f 72 |;.....In|stigator|
|00003560| 20 3d 20 73 65 6c 66 3b | 0d 0a 20 20 20 20 47 69 | = self;|.. Gi|
|00003570| 62 6c 65 74 20 3d 20 53 | 70 61 77 6e 28 20 47 69 |blet = S|pawn( Gi|
|00003580| 62 43 6c 61 73 73 2c 2c | 2c 20 4c 6f 63 61 74 69 |bClass,,|, Locati|
|00003590| 6f 6e 2c 20 52 6f 74 61 | 74 69 6f 6e 20 29 3b 0d |on, Rota|tion );.|
|000035a0| 0a 20 20 20 20 69 66 28 | 20 47 69 62 6c 65 74 20 |. if(| Giblet |
|000035b0| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 20 20 20 20 20 |== None |).. |
|000035c0| 20 20 20 72 65 74 75 72 | 6e 3b 0d 0a 09 47 69 62 | retur|n;...Gib|
|000035d0| 6c 65 74 2e 62 46 6c 61 | 6d 69 6e 67 20 3d 20 62 |let.bFla|ming = b|
|000035e0| 46 6c 61 6d 69 6e 67 3b | 0d 0a 09 47 69 62 6c 65 |Flaming;|...Gible|
|000035f0| 74 2e 53 70 61 77 6e 54 | 72 61 69 6c 28 29 3b 0d |t.SpawnT|rail();.|
|00003600| 0a 0d 0a 20 20 20 20 47 | 69 62 50 65 72 74 65 72 |... G|ibPerter|
|00003610| 62 61 74 69 6f 6e 20 2a | 3d 20 33 32 37 36 38 2e |bation *|= 32768.|
|00003620| 30 3b 0d 0a 20 20 20 20 | 52 6f 74 61 74 69 6f 6e |0;.. |Rotation|
|00003630| 2e 50 69 74 63 68 20 2b | 3d 20 28 20 46 52 61 6e |.Pitch +|= ( FRan|
|00003640| 64 28 29 20 2a 20 32 2e | 30 20 2a 20 47 69 62 50 |d() * 2.|0 * GibP|
|00003650| 65 72 74 65 72 62 61 74 | 69 6f 6e 20 29 20 2d 20 |erterbat|ion ) - |
|00003660| 47 69 62 50 65 72 74 65 | 72 62 61 74 69 6f 6e 3b |GibPerte|rbation;|
|00003670| 0d 0a 20 20 20 20 52 6f | 74 61 74 69 6f 6e 2e 59 |.. Ro|tation.Y|
|00003680| 61 77 20 2b 3d 20 28 20 | 46 52 61 6e 64 28 29 20 |aw += ( |FRand() |
|00003690| 2a 20 32 2e 30 20 2a 20 | 47 69 62 50 65 72 74 65 |* 2.0 * |GibPerte|
|000036a0| 72 62 61 74 69 6f 6e 20 | 29 20 2d 20 47 69 62 50 |rbation |) - GibP|
|000036b0| 65 72 74 65 72 62 61 74 | 69 6f 6e 3b 0d 0a 20 20 |erterbat|ion;.. |
|000036c0| 20 20 52 6f 74 61 74 69 | 6f 6e 2e 52 6f 6c 6c 20 | Rotati|on.Roll |
|000036d0| 2b 3d 20 28 20 46 52 61 | 6e 64 28 29 20 2a 20 32 |+= ( FRa|nd() * 2|
|000036e0| 2e 30 20 2a 20 47 69 62 | 50 65 72 74 65 72 62 61 |.0 * Gib|Perterba|
|000036f0| 74 69 6f 6e 20 29 20 2d | 20 47 69 62 50 65 72 74 |tion ) -| GibPert|
|00003700| 65 72 62 61 74 69 6f 6e | 3b 0d 0a 0d 0a 20 20 20 |erbation|;.... |
|00003710| 20 47 65 74 41 78 65 73 | 28 20 52 6f 74 61 74 69 | GetAxes|( Rotati|
|00003720| 6f 6e 2c 20 44 75 6d 6d | 79 2c 20 44 75 6d 6d 79 |on, Dumm|y, Dummy|
|00003730| 2c 20 44 69 72 65 63 74 | 69 6f 6e 20 29 3b 0d 0a |, Direct|ion );..|
|00003740| 0d 0a 20 20 20 20 47 69 | 62 6c 65 74 2e 56 65 6c |.. Gi|blet.Vel|
|00003750| 6f 63 69 74 79 20 3d 20 | 56 65 6c 6f 63 69 74 79 |ocity = |Velocity|
|00003760| 20 2b 20 4e 6f 72 6d 61 | 6c 28 44 69 72 65 63 74 | + Norma|l(Direct|
|00003770| 69 6f 6e 29 20 2a 20 28 | 32 35 30 20 2b 20 32 36 |ion) * (|250 + 26|
|00003780| 30 20 2a 20 46 52 61 6e | 64 28 29 29 3b 0d 0a 20 |0 * FRan|d());.. |
|00003790| 20 20 20 47 69 62 6c 65 | 74 2e 4c 69 66 65 53 70 | Gible|t.LifeSp|
|000037a0| 61 6e 20 3d 20 47 69 62 | 6c 65 74 2e 4c 69 66 65 |an = Gib|let.Life|
|000037b0| 53 70 61 6e 20 2b 20 32 | 20 2a 20 46 52 61 6e 64 |Span + 2| * FRand|
|000037c0| 28 29 20 2d 20 31 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |() - 1;.|.}....si|
|000037d0| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|000037e0| 20 50 72 6f 63 65 73 73 | 48 69 74 46 58 28 29 0d | Process|HitFX().|
|000037f0| 0a 7b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 43 6f |.{.. |local Co|
|00003800| 6f 72 64 73 20 62 6f 6e | 65 43 6f 6f 72 64 73 3b |ords bon|eCoords;|
|00003810| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 63 6c 61 73 |.. lo|cal clas|
|00003820| 73 3c 78 45 6d 69 74 74 | 65 72 3e 20 48 69 74 45 |s<xEmitt|er> HitE|
|00003830| 66 66 65 63 74 73 5b 34 | 5d 3b 0d 0a 20 20 20 20 |ffects[4|];.. |
|00003840| 6c 6f 63 61 6c 20 69 6e | 74 20 69 2c 6a 3b 0d 0a |local in|t i,j;..|
|00003850| 20 20 20 20 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 | loca|l float |
|00003860| 47 69 62 50 65 72 74 65 | 72 62 61 74 69 6f 6e 3b |GibPerte|rbation;|
|00003870| 0d 0a 0d 0a 20 20 20 20 | 69 66 28 20 28 4c 65 76 |.... |if( (Lev|
|00003880| 65 6c 2e 4e 65 74 4d 6f | 64 65 20 3d 3d 20 4e 4d |el.NetMo|de == NM|
|00003890| 5f 44 65 64 69 63 61 74 | 65 64 53 65 72 76 65 72 |_Dedicat|edServer|
|000038a0| 29 20 7c 7c 20 62 53 6b | 65 6c 65 74 69 7a 65 64 |) || bSk|eletized|
|000038b0| 20 7c 7c 20 28 4d 65 73 | 68 20 3d 3d 20 53 6b 65 | || (Mes|h == Ske|
|000038c0| 6c 65 74 6f 6e 4d 65 73 | 68 29 20 29 0d 0a 20 20 |letonMes|h) ).. |
|000038d0| 20 20 7b 0d 0a 09 09 53 | 69 6d 48 69 74 46 78 54 | {....S|imHitFxT|
|000038e0| 69 63 6b 65 72 20 3d 20 | 48 69 74 46 78 54 69 63 |icker = |HitFxTic|
|000038f0| 6b 65 72 3b 0d 0a 20 20 | 20 20 20 20 20 20 72 65 |ker;.. | re|
|00003900| 74 75 72 6e 3b 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a |turn;.. | }....|
|00003910| 20 20 20 20 66 6f 72 20 | 28 20 53 69 6d 48 69 74 | for |( SimHit|
|00003920| 46 78 54 69 63 6b 65 72 | 20 3d 20 53 69 6d 48 69 |FxTicker| = SimHi|
|00003930| 74 46 78 54 69 63 6b 65 | 72 3b 20 53 69 6d 48 69 |tFxTicke|r; SimHi|
|00003940| 74 46 78 54 69 63 6b 65 | 72 20 21 3d 20 48 69 74 |tFxTicke|r != Hit|
|00003950| 46 78 54 69 63 6b 65 72 | 3b 20 53 69 6d 48 69 74 |FxTicker|; SimHit|
|00003960| 46 78 54 69 63 6b 65 72 | 20 3d 20 28 53 69 6d 48 |FxTicker| = (SimH|
|00003970| 69 74 46 78 54 69 63 6b | 65 72 20 2b 20 31 29 20 |itFxTick|er + 1) |
|00003980| 25 20 41 72 72 61 79 43 | 6f 75 6e 74 28 48 69 74 |% ArrayC|ount(Hit|
|00003990| 46 58 29 20 29 0d 0a 20 | 20 20 20 7b 0d 0a 09 09 |FX) ).. | {....|
|000039a0| 6a 2b 2b 3b 0d 0a 09 09 | 69 66 20 28 20 6a 20 3e |j++;....|if ( j >|
|000039b0| 20 33 30 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 53 | 30 )...|.{.....S|
|000039c0| 69 6d 48 69 74 46 78 54 | 69 63 6b 65 72 20 3d 20 |imHitFxT|icker = |
|000039d0| 48 69 74 46 78 54 69 63 | 6b 65 72 3b 0d 0a 09 09 |HitFxTic|ker;....|
|000039e0| 09 72 65 74 75 72 6e 3b | 0d 0a 09 09 7d 0d 0a 0d |.return;|....}...|
|000039f0| 0a 20 20 20 20 20 20 20 | 20 69 66 28 20 28 48 69 |. | if( (Hi|
|00003a00| 74 46 58 5b 53 69 6d 48 | 69 74 46 78 54 69 63 6b |tFX[SimH|itFxTick|
|00003a10| 65 72 5d 2e 64 61 6d 74 | 79 70 65 20 3d 3d 20 4e |er].damt|ype == N|
|00003a20| 6f 6e 65 29 20 7c 7c 20 | 28 4c 65 76 65 6c 2e 62 |one) || |(Level.b|
|00003a30| 44 72 6f 70 44 65 74 61 | 69 6c 20 26 26 20 28 4c |DropDeta|il && (L|
|00003a40| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00003a50| 20 2d 20 4c 61 73 74 52 | 65 6e 64 65 72 54 69 6d | - LastR|enderTim|
|00003a60| 65 20 3e 20 33 29 20 26 | 26 20 21 49 73 48 75 6d |e > 3) &|& !IsHum|
|00003a70| 61 6e 43 6f 6e 74 72 6f | 6c 6c 65 64 28 29 29 20 |anContro|lled()) |
|00003a80| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |).. | c|
|00003a90| 6f 6e 74 69 6e 75 65 3b | 0d 0a 0d 0a 20 20 20 20 |ontinue;|.... |
|00003aa0| 20 20 20 20 62 6f 6e 65 | 43 6f 6f 72 64 73 20 3d | bone|Coords =|
|00003ab0| 20 47 65 74 42 6f 6e 65 | 43 6f 6f 72 64 73 28 20 | GetBone|Coords( |
|00003ac0| 48 69 74 46 58 5b 53 69 | 6d 48 69 74 46 78 54 69 |HitFX[Si|mHitFxTi|
|00003ad0| 63 6b 65 72 5d 2e 62 6f | 6e 65 20 29 3b 0d 0a 0d |cker].bo|ne );...|
|00003ae0| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 20 21 4c |. | if ( !L|
|00003af0| 65 76 65 6c 2e 62 44 72 | 6f 70 44 65 74 61 69 6c |evel.bDr|opDetail|
|00003b00| 20 26 26 20 21 62 53 6b | 65 6c 65 74 69 7a 65 64 | && !bSk|eletized|
|00003b10| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 7b 0d 0a 09 | ).. | {...|
|00003b20| 09 09 41 74 74 61 63 68 | 45 66 66 65 63 74 28 20 |..Attach|Effect( |
|00003b30| 47 69 62 47 72 6f 75 70 | 43 6c 61 73 73 2e 73 74 |GibGroup|Class.st|
|00003b40| 61 74 69 63 2e 47 65 74 | 42 6c 6f 6f 64 45 6d 69 |atic.Get|BloodEmi|
|00003b50| 74 43 6c 61 73 73 28 29 | 2c 20 48 69 74 46 58 5b |tClass()|, HitFX[|
|00003b60| 53 69 6d 48 69 74 46 78 | 54 69 63 6b 65 72 5d 2e |SimHitFx|Ticker].|
|00003b70| 62 6f 6e 65 2c 20 62 6f | 6e 65 43 6f 6f 72 64 73 |bone, bo|neCoords|
|00003b80| 2e 4f 72 69 67 69 6e 2c | 20 48 69 74 46 58 5b 53 |.Origin,| HitFX[S|
|00003b90| 69 6d 48 69 74 46 78 54 | 69 63 6b 65 72 5d 2e 72 |imHitFxT|icker].r|
|00003ba0| 6f 74 44 69 72 20 29 3b | 0d 0a 0d 0a 09 09 09 48 |otDir );|.......H|
|00003bb0| 69 74 46 58 5b 53 69 6d | 48 69 74 46 78 54 69 63 |itFX[Sim|HitFxTic|
|00003bc0| 6b 65 72 5d 2e 64 61 6d | 74 79 70 65 2e 73 74 61 |ker].dam|type.sta|
|00003bd0| 74 69 63 2e 47 65 74 48 | 69 74 45 66 66 65 63 74 |tic.GetH|itEffect|
|00003be0| 73 28 20 48 69 74 45 66 | 66 65 63 74 73 2c 20 48 |s( HitEf|fects, H|
|00003bf0| 65 61 6c 74 68 20 29 3b | 0d 0a 0d 0a 09 09 09 69 |ealth );|.......i|
|00003c00| 66 28 20 21 50 68 79 73 | 69 63 73 56 6f 6c 75 6d |f( !Phys|icsVolum|
|00003c10| 65 2e 62 57 61 74 65 72 | 56 6f 6c 75 6d 65 20 29 |e.bWater|Volume )|
|00003c20| 20 2f 2f 20 64 6f 6e 27 | 74 20 61 74 74 61 63 68 | // don'|t attach|
|00003c30| 20 65 66 66 65 63 74 73 | 20 75 6e 64 65 72 20 77 | effects| under w|
|00003c40| 61 74 65 72 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |ater....|.{......|
|00003c50| 66 6f 72 28 20 69 20 3d | 20 30 3b 20 69 20 3c 20 |for( i =| 0; i < |
|00003c60| 41 72 72 61 79 43 6f 75 | 6e 74 28 48 69 74 45 66 |ArrayCou|nt(HitEf|
|00003c70| 66 65 63 74 73 29 3b 20 | 69 2b 2b 20 29 0d 0a 09 |fects); |i++ )...|
|00003c80| 09 09 09 7b 0d 0a 09 09 | 09 09 09 69 66 28 20 48 |...{....|...if( H|
|00003c90| 69 74 45 66 66 65 63 74 | 73 5b 69 5d 20 3d 3d 20 |itEffect|s[i] == |
|00003ca0| 4e 6f 6e 65 20 29 0d 0a | 09 09 09 09 09 09 63 6f |None )..|......co|
|00003cb0| 6e 74 69 6e 75 65 3b 0d | 0a 0d 0a 09 09 09 09 09 |ntinue;.|........|
|00003cc0| 41 74 74 61 63 68 45 66 | 66 65 63 74 28 20 48 69 |AttachEf|fect( Hi|
|00003cd0| 74 45 66 66 65 63 74 73 | 5b 69 5d 2c 20 48 69 74 |tEffects|[i], Hit|
|00003ce0| 46 58 5b 53 69 6d 48 69 | 74 46 78 54 69 63 6b 65 |FX[SimHi|tFxTicke|
|00003cf0| 72 5d 2e 62 6f 6e 65 2c | 20 62 6f 6e 65 43 6f 6f |r].bone,| boneCoo|
|00003d00| 72 64 73 2e 4f 72 69 67 | 69 6e 2c 20 48 69 74 46 |rds.Orig|in, HitF|
|00003d10| 58 5b 53 69 6d 48 69 74 | 46 78 54 69 63 6b 65 72 |X[SimHit|FxTicker|
|00003d20| 5d 2e 72 6f 74 44 69 72 | 20 29 3b 0d 0a 09 09 09 |].rotDir| );.....|
|00003d30| 09 7d 0d 0a 09 09 09 7d | 0d 0a 09 09 7d 0d 0a 20 |.}.....}|....}.. |
|00003d40| 20 20 20 20 20 20 20 69 | 66 20 28 20 63 6c 61 73 | i|f ( clas|
|00003d50| 73 27 47 61 6d 65 49 6e | 66 6f 27 2e 73 74 61 74 |s'GameIn|fo'.stat|
|00003d60| 69 63 2e 55 73 65 4c 6f | 77 47 6f 72 65 28 29 20 |ic.UseLo|wGore() |
|00003d70| 29 0d 0a 09 09 09 48 69 | 74 46 58 5b 53 69 6d 48 |).....Hi|tFX[SimH|
|00003d80| 69 74 46 78 54 69 63 6b | 65 72 5d 2e 62 53 65 76 |itFxTick|er].bSev|
|00003d90| 65 72 20 3d 20 66 61 6c | 73 65 3b 0d 0a 0d 0a 20 |er = fal|se;.... |
|00003da0| 20 20 20 20 20 20 20 69 | 66 28 20 48 69 74 46 58 | i|f( HitFX|
|00003db0| 5b 53 69 6d 48 69 74 46 | 78 54 69 63 6b 65 72 5d |[SimHitF|xTicker]|
|00003dc0| 2e 62 53 65 76 65 72 20 | 29 0d 0a 20 20 20 20 20 |.bSever |).. |
|00003dd0| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00003de0| 20 20 47 69 62 50 65 72 | 74 65 72 62 61 74 69 6f | GibPer|terbatio|
|00003df0| 6e 20 3d 20 48 69 74 46 | 58 5b 53 69 6d 48 69 74 |n = HitF|X[SimHit|
|00003e00| 46 78 54 69 63 6b 65 72 | 5d 2e 64 61 6d 74 79 70 |FxTicker|].damtyp|
|00003e10| 65 2e 64 65 66 61 75 6c | 74 2e 47 69 62 50 65 72 |e.defaul|t.GibPer|
|00003e20| 74 65 72 62 61 74 69 6f | 6e 3b 0d 0a 09 09 09 62 |terbatio|n;.....b|
|00003e30| 46 6c 61 6d 69 6e 67 20 | 3d 20 48 69 74 46 58 5b |Flaming |= HitFX[|
|00003e40| 53 69 6d 48 69 74 46 78 | 54 69 63 6b 65 72 5d 2e |SimHitFx|Ticker].|
|00003e50| 44 61 6d 54 79 70 65 2e | 44 65 66 61 75 6c 74 2e |DamType.|Default.|
|00003e60| 62 46 6c 61 6d 69 6e 67 | 3b 0d 0a 0d 0a 20 20 20 |bFlaming|;.... |
|00003e70| 20 20 20 20 20 20 20 20 | 20 73 77 69 74 63 68 28 | | switch(|
|00003e80| 20 48 69 74 46 58 5b 53 | 69 6d 48 69 74 46 78 54 | HitFX[S|imHitFxT|
|00003e90| 69 63 6b 65 72 5d 2e 62 | 6f 6e 65 20 29 0d 0a 20 |icker].b|one ).. |
|00003ea0| 20 20 20 20 20 20 20 20 | 20 20 20 7b 0d 0a 20 20 | | {.. |
|00003eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca|
|00003ec0| 73 65 20 27 6c 74 68 69 | 67 68 27 3a 0d 0a 20 20 |se 'lthi|gh':.. |
|00003ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca|
|00003ee0| 73 65 20 27 72 74 68 69 | 67 68 27 3a 0d 0a 20 20 |se 'rthi|gh':.. |
|00003ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f00| 20 20 53 70 61 77 6e 47 | 69 62 6c 65 74 28 20 47 | SpawnG|iblet( G|
|00003f10| 65 74 47 69 62 43 6c 61 | 73 73 28 45 47 54 5f 43 |etGibCla|ss(EGT_C|
|00003f20| 61 6c 66 29 2c 20 62 6f | 6e 65 43 6f 6f 72 64 73 |alf), bo|neCoords|
|00003f30| 2e 4f 72 69 67 69 6e 2c | 20 48 69 74 46 58 5b 53 |.Origin,| HitFX[S|
|00003f40| 69 6d 48 69 74 46 78 54 | 69 63 6b 65 72 5d 2e 72 |imHitFxT|icker].r|
|00003f50| 6f 74 44 69 72 2c 20 47 | 69 62 50 65 72 74 65 72 |otDir, G|ibPerter|
|00003f60| 62 61 74 69 6f 6e 20 29 | 3b 0d 0a 20 20 20 20 20 |bation )|;.. |
|00003f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|00003f80| 70 61 77 6e 47 69 62 6c | 65 74 28 20 47 65 74 47 |pawnGibl|et( GetG|
|00003f90| 69 62 43 6c 61 73 73 28 | 45 47 54 5f 43 61 6c 66 |ibClass(|EGT_Calf|
|00003fa0| 29 2c 20 62 6f 6e 65 43 | 6f 6f 72 64 73 2e 4f 72 |), boneC|oords.Or|
|00003fb0| 69 67 69 6e 2c 20 48 69 | 74 46 58 5b 53 69 6d 48 |igin, Hi|tFX[SimH|
|00003fc0| 69 74 46 78 54 69 63 6b | 65 72 5d 2e 72 6f 74 44 |itFxTick|er].rotD|
|00003fd0| 69 72 2c 20 47 69 62 50 | 65 72 74 65 72 62 61 74 |ir, GibP|erterbat|
|00003fe0| 69 6f 6e 20 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |ion );..| |
|00003ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 47 69 62 43 | | GibC|
|00004000| 6f 75 6e 74 43 61 6c 66 | 20 2d 3d 20 32 3b 0d 0a |ountCalf| -= 2;..|
|00004010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004020| 20 20 20 20 62 72 65 61 | 6b 3b 0d 0a 0d 0a 20 20 | brea|k;.... |
|00004030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca|
|00004040| 73 65 20 27 72 66 61 72 | 6d 27 3a 0d 0a 20 20 20 |se 'rfar|m':.. |
|00004050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 73 | | cas|
|00004060| 65 20 27 6c 66 61 72 6d | 27 3a 0d 0a 20 20 20 20 |e 'lfarm|':.. |
|00004070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004080| 53 70 61 77 6e 47 69 62 | 6c 65 74 28 20 47 65 74 |SpawnGib|let( Get|
|00004090| 47 69 62 43 6c 61 73 73 | 28 45 47 54 5f 55 70 70 |GibClass|(EGT_Upp|
|000040a0| 65 72 41 72 6d 29 2c 20 | 62 6f 6e 65 43 6f 6f 72 |erArm), |boneCoor|
|000040b0| 64 73 2e 4f 72 69 67 69 | 6e 2c 20 48 69 74 46 58 |ds.Origi|n, HitFX|
|000040c0| 5b 53 69 6d 48 69 74 46 | 78 54 69 63 6b 65 72 5d |[SimHitF|xTicker]|
|000040d0| 2e 72 6f 74 44 69 72 2c | 20 47 69 62 50 65 72 74 |.rotDir,| GibPert|
|000040e0| 65 72 62 61 74 69 6f 6e | 20 29 3b 0d 0a 20 20 20 |erbation| );.. |
|000040f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004100| 20 53 70 61 77 6e 47 69 | 62 6c 65 74 28 20 47 65 | SpawnGi|blet( Ge|
|00004110| 74 47 69 62 43 6c 61 73 | 73 28 45 47 54 5f 46 6f |tGibClas|s(EGT_Fo|
|00004120| 72 65 61 72 6d 29 2c 20 | 62 6f 6e 65 43 6f 6f 72 |rearm), |boneCoor|
|00004130| 64 73 2e 4f 72 69 67 69 | 6e 2c 20 48 69 74 46 58 |ds.Origi|n, HitFX|
|00004140| 5b 53 69 6d 48 69 74 46 | 78 54 69 63 6b 65 72 5d |[SimHitF|xTicker]|
|00004150| 2e 72 6f 74 44 69 72 2c | 20 47 69 62 50 65 72 74 |.rotDir,| GibPert|
|00004160| 65 72 62 61 74 69 6f 6e | 20 29 3b 0d 0a 20 20 20 |erbation| );.. |
|00004170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004180| 20 47 69 62 43 6f 75 6e | 74 46 6f 72 65 61 72 6d | GibCoun|tForearm|
|00004190| 2d 2d 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |--;.. | |
|000041a0| 20 20 20 20 20 20 20 20 | 20 47 69 62 43 6f 75 6e | | GibCoun|
|000041b0| 74 55 70 70 65 72 41 72 | 6d 2d 2d 3b 0d 0a 20 20 |tUpperAr|m--;.. |
|000041c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041d0| 20 20 62 72 65 61 6b 3b | 0d 0a 0d 0a 20 20 20 20 | break;|.... |
|000041e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 73 65 | | case|
|000041f0| 20 27 68 65 61 64 27 3a | 0d 0a 20 20 20 20 20 20 | 'head':|.. |
|00004200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 70 | | Sp|
|00004210| 61 77 6e 47 69 62 6c 65 | 74 28 20 47 65 74 47 69 |awnGible|t( GetGi|
|00004220| 62 43 6c 61 73 73 28 45 | 47 54 5f 48 65 61 64 29 |bClass(E|GT_Head)|
|00004230| 2c 20 62 6f 6e 65 43 6f | 6f 72 64 73 2e 4f 72 69 |, boneCo|ords.Ori|
|00004240| 67 69 6e 2c 20 48 69 74 | 46 58 5b 53 69 6d 48 69 |gin, Hit|FX[SimHi|
|00004250| 74 46 78 54 69 63 6b 65 | 72 5d 2e 72 6f 74 44 69 |tFxTicke|r].rotDi|
|00004260| 72 2c 20 47 69 62 50 65 | 72 74 65 72 62 61 74 69 |r, GibPe|rterbati|
|00004270| 6f 6e 20 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |on );.. | |
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 47 69 62 43 6f | | GibCo|
|00004290| 75 6e 74 54 6f 72 73 6f | 2d 2d 3b 0d 0a 20 20 20 |untTorso|--;.. |
|000042a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042b0| 20 62 72 65 61 6b 3b 0d | 0a 0d 0a 20 20 20 20 20 | break;.|... |
|000042c0| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 | | case |
|000042d0| 27 73 70 69 6e 65 27 3a | 0d 0a 20 20 20 20 20 20 |'spine':|.. |
|000042e0| 20 20 20 20 20 20 20 20 | 20 20 63 61 73 65 20 27 | | case '|
|000042f0| 6e 6f 6e 65 27 3a 0d 0a | 20 20 20 20 20 20 20 20 |none':..| |
|00004300| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 70 61 77 | | Spaw|
|00004310| 6e 47 69 62 6c 65 74 28 | 20 47 65 74 47 69 62 43 |nGiblet(| GetGibC|
|00004320| 6c 61 73 73 28 45 47 54 | 5f 54 6f 72 73 6f 29 2c |lass(EGT|_Torso),|
|00004330| 20 62 6f 6e 65 43 6f 6f | 72 64 73 2e 4f 72 69 67 | boneCoo|rds.Orig|
|00004340| 69 6e 2c 20 48 69 74 46 | 58 5b 53 69 6d 48 69 74 |in, HitF|X[SimHit|
|00004350| 46 78 54 69 63 6b 65 72 | 5d 2e 72 6f 74 44 69 72 |FxTicker|].rotDir|
|00004360| 2c 20 47 69 62 50 65 72 | 74 65 72 62 61 74 69 6f |, GibPer|terbatio|
|00004370| 6e 20 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |n );.. | |
|00004380| 20 20 20 20 20 20 20 20 | 20 20 47 69 62 43 6f 75 | | GibCou|
|00004390| 6e 74 54 6f 72 73 6f 2d | 2d 3b 0d 0a 09 09 09 09 |ntTorso-|-;......|
|000043a0| 09 62 47 69 62 62 65 64 | 20 3d 20 74 72 75 65 3b |.bGibbed| = true;|
|000043b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000043c0| 20 20 20 20 20 20 77 68 | 69 6c 65 28 20 47 69 62 | wh|ile( Gib|
|000043d0| 43 6f 75 6e 74 48 65 61 | 64 2d 2d 20 3e 20 30 20 |CountHea|d-- > 0 |
|000043e0| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |).. | |
|000043f0| 20 20 20 20 20 20 20 20 | 20 20 20 53 70 61 77 6e | | Spawn|
|00004400| 47 69 62 6c 65 74 28 20 | 47 65 74 47 69 62 43 6c |Giblet( |GetGibCl|
|00004410| 61 73 73 28 45 47 54 5f | 48 65 61 64 29 2c 20 62 |ass(EGT_|Head), b|
|00004420| 6f 6e 65 43 6f 6f 72 64 | 73 2e 4f 72 69 67 69 6e |oneCoord|s.Origin|
|00004430| 2c 20 48 69 74 46 58 5b | 53 69 6d 48 69 74 46 78 |, HitFX[|SimHitFx|
|00004440| 54 69 63 6b 65 72 5d 2e | 72 6f 74 44 69 72 2c 20 |Ticker].|rotDir, |
|00004450| 47 69 62 50 65 72 74 65 | 72 62 61 74 69 6f 6e 20 |GibPerte|rbation |
|00004460| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00004470| 20 20 20 20 20 20 20 20 | 77 68 69 6c 65 28 20 47 | |while( G|
|00004480| 69 62 43 6f 75 6e 74 46 | 6f 72 65 61 72 6d 2d 2d |ibCountF|orearm--|
|00004490| 20 3e 20 30 20 29 0d 0a | 20 20 20 20 20 20 20 20 | > 0 )..| |
|000044a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044b0| 53 70 61 77 6e 47 69 62 | 6c 65 74 28 20 47 65 74 |SpawnGib|let( Get|
|000044c0| 47 69 62 43 6c 61 73 73 | 28 45 47 54 5f 55 70 70 |GibClass|(EGT_Upp|
|000044d0| 65 72 41 72 6d 29 2c 20 | 62 6f 6e 65 43 6f 6f 72 |erArm), |boneCoor|
|000044e0| 64 73 2e 4f 72 69 67 69 | 6e 2c 20 48 69 74 46 58 |ds.Origi|n, HitFX|
|000044f0| 5b 53 69 6d 48 69 74 46 | 78 54 69 63 6b 65 72 5d |[SimHitF|xTicker]|
|00004500| 2e 72 6f 74 44 69 72 2c | 20 47 69 62 50 65 72 74 |.rotDir,| GibPert|
|00004510| 65 72 62 61 74 69 6f 6e | 20 29 3b 0d 0a 20 20 20 |erbation| );.. |
|00004520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004530| 20 77 68 69 6c 65 28 20 | 47 69 62 43 6f 75 6e 74 | while( |GibCount|
|00004540| 55 70 70 65 72 41 72 6d | 2d 2d 20 3e 20 30 20 29 |UpperArm|-- > 0 )|
|00004550| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004560| 20 20 20 20 20 20 20 20 | 20 20 53 70 61 77 6e 47 | | SpawnG|
|00004570| 69 62 6c 65 74 28 20 47 | 65 74 47 69 62 43 6c 61 |iblet( G|etGibCla|
|00004580| 73 73 28 45 47 54 5f 46 | 6f 72 65 61 72 6d 29 2c |ss(EGT_F|orearm),|
|00004590| 20 62 6f 6e 65 43 6f 6f | 72 64 73 2e 4f 72 69 67 | boneCoo|rds.Orig|
|000045a0| 69 6e 2c 20 48 69 74 46 | 58 5b 53 69 6d 48 69 74 |in, HitF|X[SimHit|
|000045b0| 46 78 54 69 63 6b 65 72 | 5d 2e 72 6f 74 44 69 72 |FxTicker|].rotDir|
|000045c0| 2c 20 47 69 62 50 65 72 | 74 65 72 62 61 74 69 6f |, GibPer|terbatio|
|000045d0| 6e 20 29 3b 0d 0a 09 09 | 09 09 09 69 66 20 28 20 |n );....|...if ( |
|000045e0| 21 62 46 6c 61 6d 69 6e | 67 20 26 26 20 21 4c 65 |!bFlamin|g && !Le|
|000045f0| 76 65 6c 2e 62 44 72 6f | 70 44 65 74 61 69 6c 20 |vel.bDro|pDetail |
|00004600| 26 26 20 28 4c 65 76 65 | 6c 2e 44 65 74 61 69 6c |&& (Leve|l.Detail|
|00004610| 4d 6f 64 65 20 21 3d 20 | 44 4d 5f 4c 6f 77 29 20 |Mode != |DM_Low) |
|00004620| 26 26 20 50 6c 61 79 65 | 72 43 61 6e 53 65 65 4d |&& Playe|rCanSeeM|
|00004630| 65 28 29 20 29 0d 0a 09 | 09 09 09 09 7b 0d 0a 09 |e() )...|....{...|
|00004640| 09 09 09 09 09 2f 2f 20 | 65 78 74 72 61 20 67 69 |.....// |extra gi|
|00004650| 62 73 21 21 21 0d 0a 09 | 09 09 09 09 09 47 69 62 |bs!!!...|.....Gib|
|00004660| 50 65 72 74 65 72 62 61 | 74 69 6f 6e 20 3d 20 46 |Perterba|tion = F|
|00004670| 4d 69 6e 28 31 2e 30 2c | 20 31 2e 35 20 2a 20 47 |Min(1.0,| 1.5 * G|
|00004680| 69 62 50 65 72 74 65 72 | 62 61 74 69 6f 6e 29 3b |ibPerter|bation);|
|00004690| 0d 0a 09 09 09 09 09 09 | 53 70 61 77 6e 47 69 62 |........|SpawnGib|
|000046a0| 6c 65 74 28 20 47 65 74 | 47 69 62 43 6c 61 73 73 |let( Get|GibClass|
|000046b0| 28 45 47 54 5f 43 61 6c | 66 29 2c 20 62 6f 6e 65 |(EGT_Cal|f), bone|
|000046c0| 43 6f 6f 72 64 73 2e 4f | 72 69 67 69 6e 2c 20 48 |Coords.O|rigin, H|
|000046d0| 69 74 46 58 5b 53 69 6d | 48 69 74 46 78 54 69 63 |itFX[Sim|HitFxTic|
|000046e0| 6b 65 72 5d 2e 72 6f 74 | 44 69 72 2c 20 47 69 62 |ker].rot|Dir, Gib|
|000046f0| 50 65 72 74 65 72 62 61 | 74 69 6f 6e 20 29 3b 0d |Perterba|tion );.|
|00004700| 0a 09 09 09 09 09 09 53 | 70 61 77 6e 47 69 62 6c |.......S|pawnGibl|
|00004710| 65 74 28 20 47 65 74 47 | 69 62 43 6c 61 73 73 28 |et( GetG|ibClass(|
|00004720| 45 47 54 5f 43 61 6c 66 | 29 2c 20 62 6f 6e 65 43 |EGT_Calf|), boneC|
|00004730| 6f 6f 72 64 73 2e 4f 72 | 69 67 69 6e 2c 20 48 69 |oords.Or|igin, Hi|
|00004740| 74 46 58 5b 53 69 6d 48 | 69 74 46 78 54 69 63 6b |tFX[SimH|itFxTick|
|00004750| 65 72 5d 2e 72 6f 74 44 | 69 72 2c 20 47 69 62 50 |er].rotD|ir, GibP|
|00004760| 65 72 74 65 72 62 61 74 | 69 6f 6e 20 29 3b 0d 0a |erterbat|ion );..|
|00004770| 09 09 09 09 09 09 53 70 | 61 77 6e 47 69 62 6c 65 |......Sp|awnGible|
|00004780| 74 28 20 47 65 74 47 69 | 62 43 6c 61 73 73 28 45 |t( GetGi|bClass(E|
|00004790| 47 54 5f 55 70 70 65 72 | 41 72 6d 29 2c 20 62 6f |GT_Upper|Arm), bo|
|000047a0| 6e 65 43 6f 6f 72 64 73 | 2e 4f 72 69 67 69 6e 2c |neCoords|.Origin,|
|000047b0| 20 48 69 74 46 58 5b 53 | 69 6d 48 69 74 46 78 54 | HitFX[S|imHitFxT|
|000047c0| 69 63 6b 65 72 5d 2e 72 | 6f 74 44 69 72 2c 20 47 |icker].r|otDir, G|
|000047d0| 69 62 50 65 72 74 65 72 | 62 61 74 69 6f 6e 20 29 |ibPerter|bation )|
|000047e0| 3b 0d 0a 09 09 09 09 09 | 09 53 70 61 77 6e 47 69 |;.......|.SpawnGi|
|000047f0| 62 6c 65 74 28 20 47 65 | 74 47 69 62 43 6c 61 73 |blet( Ge|tGibClas|
|00004800| 73 28 45 47 54 5f 46 6f | 72 65 61 72 6d 29 2c 20 |s(EGT_Fo|rearm), |
|00004810| 62 6f 6e 65 43 6f 6f 72 | 64 73 2e 4f 72 69 67 69 |boneCoor|ds.Origi|
|00004820| 6e 2c 20 48 69 74 46 58 | 5b 53 69 6d 48 69 74 46 |n, HitFX|[SimHitF|
|00004830| 78 54 69 63 6b 65 72 5d | 2e 72 6f 74 44 69 72 2c |xTicker]|.rotDir,|
|00004840| 20 47 69 62 50 65 72 74 | 65 72 62 61 74 69 6f 6e | GibPert|erbation|
|00004850| 20 29 3b 0d 0a 09 09 09 | 09 09 7d 0d 0a 20 20 20 | );.....|..}.. |
|00004860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004870| 20 62 72 65 61 6b 3b 0d | 0a 20 20 20 20 20 20 20 | break;.|. |
|00004880| 20 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 20 20 | }..|.. |
|00004890| 20 20 20 20 20 20 48 69 | 64 65 42 6f 6e 65 28 48 | Hi|deBone(H|
|000048a0| 69 74 46 58 5b 53 69 6d | 48 69 74 46 78 54 69 63 |itFX[Sim|HitFxTic|
|000048b0| 6b 65 72 5d 2e 62 6f 6e | 65 29 3b 0d 0a 20 20 20 |ker].bon|e);.. |
|000048c0| 20 20 20 20 20 7d 0d 0a | 20 20 20 20 7d 0d 0a 7d | }..| }..}|
|000048d0| 0d 0a 0d 0a 73 69 6d 75 | 6c 61 74 65 64 20 66 75 |....simu|lated fu|
|000048e0| 6e 63 74 69 6f 6e 20 48 | 69 64 65 42 6f 6e 65 28 |nction H|ideBone(|
|000048f0| 6e 61 6d 65 20 62 6f 6e | 65 4e 61 6d 65 29 0d 0a |name bon|eName)..|
|00004900| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 42 6f |{...loca|l int Bo|
|00004910| 6e 65 53 63 61 6c 65 53 | 6c 6f 74 3b 0d 0a 0d 0a |neScaleS|lot;....|
|00004920| 20 20 20 20 69 66 28 20 | 62 6f 6e 65 4e 61 6d 65 | if( |boneName|
|00004930| 20 3d 3d 20 27 6c 74 68 | 69 67 68 27 20 29 0d 0a | == 'lth|igh' )..|
|00004940| 09 09 62 6f 6e 65 53 63 | 61 6c 65 53 6c 6f 74 20 |..boneSc|aleSlot |
|00004950| 3d 20 30 3b 0d 0a 09 65 | 6c 73 65 20 69 66 20 28 |= 0;...e|lse if (|
|00004960| 20 62 6f 6e 65 4e 61 6d | 65 20 3d 3d 20 27 72 74 | boneNam|e == 'rt|
|00004970| 68 69 67 68 27 20 29 0d | 0a 09 09 62 6f 6e 65 53 |high' ).|...boneS|
|00004980| 63 61 6c 65 53 6c 6f 74 | 20 3d 20 31 3b 0d 0a 09 |caleSlot| = 1;...|
|00004990| 65 6c 73 65 20 69 66 28 | 20 62 6f 6e 65 4e 61 6d |else if(| boneNam|
|000049a0| 65 20 3d 3d 20 27 72 66 | 61 72 6d 27 20 29 0d 0a |e == 'rf|arm' )..|
|000049b0| 09 09 62 6f 6e 65 53 63 | 61 6c 65 53 6c 6f 74 20 |..boneSc|aleSlot |
|000049c0| 3d 20 32 3b 0d 0a 09 65 | 6c 73 65 20 69 66 20 28 |= 2;...e|lse if (|
|000049d0| 20 62 6f 6e 65 4e 61 6d | 65 20 3d 3d 20 27 6c 66 | boneNam|e == 'lf|
|000049e0| 61 72 6d 27 20 29 0d 0a | 09 09 62 6f 6e 65 53 63 |arm' )..|..boneSc|
|000049f0| 61 6c 65 53 6c 6f 74 20 | 3d 20 33 3b 0d 0a 09 65 |aleSlot |= 3;...e|
|00004a00| 6c 73 65 20 69 66 20 28 | 20 62 6f 6e 65 4e 61 6d |lse if (| boneNam|
|00004a10| 65 20 3d 3d 20 27 68 65 | 61 64 27 20 29 0d 0a 09 |e == 'he|ad' )...|
|00004a20| 09 62 6f 6e 65 53 63 61 | 6c 65 53 6c 6f 74 20 3d |.boneSca|leSlot =|
|00004a30| 20 34 3b 0d 0a 09 65 6c | 73 65 20 69 66 20 28 20 | 4;...el|se if ( |
|00004a40| 62 6f 6e 65 4e 61 6d 65 | 20 3d 3d 20 27 73 70 69 |boneName| == 'spi|
|00004a50| 6e 65 27 20 29 0d 0a 09 | 09 62 6f 6e 65 53 63 61 |ne' )...|.boneSca|
|00004a60| 6c 65 53 6c 6f 74 20 3d | 20 35 3b 0d 0a 0d 0a 20 |leSlot =| 5;.... |
|00004a70| 20 20 20 53 65 74 42 6f | 6e 65 53 63 61 6c 65 28 | SetBo|neScale(|
|00004a80| 42 6f 6e 65 53 63 61 6c | 65 53 6c 6f 74 2c 20 30 |BoneScal|eSlot, 0|
|00004a90| 2e 30 2c 20 42 6f 6e 65 | 4e 61 6d 65 29 3b 0d 0a |.0, Bone|Name);..|
|00004aa0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 43 61 |}....fun|ction Ca|
|00004ab0| 6c 63 48 69 74 4c 6f 63 | 28 20 56 65 63 74 6f 72 |lcHitLoc|( Vector|
|00004ac0| 20 68 69 74 4c 6f 63 2c | 20 56 65 63 74 6f 72 20 | hitLoc,| Vector |
|00004ad0| 68 69 74 52 61 79 2c 20 | 6f 75 74 20 4e 61 6d 65 |hitRay, |out Name|
|00004ae0| 20 62 6f 6e 65 4e 61 6d | 65 2c 20 6f 75 74 20 66 | boneNam|e, out f|
|00004af0| 6c 6f 61 74 20 64 69 73 | 74 20 29 0d 0a 7b 0d 0a |loat dis|t )..{..|
|00004b00| 20 20 20 20 62 6f 6e 65 | 4e 61 6d 65 20 3d 20 47 | bone|Name = G|
|00004b10| 65 74 43 6c 6f 73 65 73 | 74 42 6f 6e 65 28 20 68 |etCloses|tBone( h|
|00004b20| 69 74 4c 6f 63 2c 20 68 | 69 74 52 61 79 2c 20 64 |itLoc, h|itRay, d|
|00004b30| 69 73 74 20 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |ist );..|}....fun|
|00004b40| 63 74 69 6f 6e 20 44 6f | 44 61 6d 61 67 65 46 58 |ction Do|DamageFX|
|00004b50| 28 20 4e 61 6d 65 20 62 | 6f 6e 65 4e 61 6d 65 2c |( Name b|oneName,|
|00004b60| 20 69 6e 74 20 44 61 6d | 61 67 65 2c 20 63 6c 61 | int Dam|age, cla|
|00004b70| 73 73 3c 44 61 6d 61 67 | 65 54 79 70 65 3e 20 44 |ss<Damag|eType> D|
|00004b80| 61 6d 61 67 65 54 79 70 | 65 2c 20 52 6f 74 61 74 |amageTyp|e, Rotat|
|00004b90| 6f 72 20 72 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |or r )..|{...loca|
|00004ba0| 6c 20 66 6c 6f 61 74 20 | 44 69 73 6d 65 6d 62 65 |l float |Dismembe|
|00004bb0| 72 50 72 6f 62 61 62 69 | 6c 69 74 79 3b 0d 0a 20 |rProbabi|lity;.. |
|00004bc0| 20 20 20 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 62 45 | local| bool bE|
|00004bd0| 78 74 72 61 47 69 62 3b | 0d 0a 0d 0a 20 20 20 20 |xtraGib;|.... |
|00004be0| 69 66 20 28 20 46 52 61 | 6e 64 28 29 20 3e 20 30 |if ( FRa|nd() > 0|
|00004bf0| 2e 33 66 20 7c 7c 20 44 | 61 6d 61 67 65 20 3e 20 |.3f || D|amage > |
|00004c00| 33 30 20 7c 7c 20 48 65 | 61 6c 74 68 20 3c 3d 20 |30 || He|alth <= |
|00004c10| 30 20 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |0 ).. | {.. |
|00004c20| 20 20 20 20 48 69 74 46 | 58 5b 48 69 74 46 78 54 | HitF|X[HitFxT|
|00004c30| 69 63 6b 65 72 5d 2e 64 | 61 6d 74 79 70 65 20 3d |icker].d|amtype =|
|00004c40| 20 44 61 6d 61 67 65 54 | 79 70 65 3b 0d 0a 0d 0a | DamageT|ype;....|
|00004c50| 20 20 20 20 20 20 20 20 | 69 66 28 20 48 65 61 6c | |if( Heal|
|00004c60| 74 68 20 3c 3d 20 30 20 | 29 0d 0a 20 20 20 20 20 |th <= 0 |).. |
|00004c70| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00004c80| 20 20 73 77 69 74 63 68 | 28 20 62 6f 6e 65 4e 61 | switch|( boneNa|
|00004c90| 6d 65 20 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |me ).. | |
|00004ca0| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00004cb0| 20 20 20 20 20 63 61 73 | 65 20 27 6c 66 6f 6f 74 | cas|e 'lfoot|
|00004cc0| 27 3a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |':.. | |
|00004cd0| 20 20 20 20 20 20 20 20 | 62 6f 6e 65 4e 61 6d 65 | |boneName|
|00004ce0| 20 3d 20 27 6c 74 68 69 | 67 68 27 3b 0d 0a 20 20 | = 'lthi|gh';.. |
|00004cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d00| 20 20 62 72 65 61 6b 3b | 0d 0a 0d 0a 20 20 20 20 | break;|.... |
|00004d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 73 65 | | case|
|00004d20| 20 27 72 66 6f 6f 74 27 | 3a 0d 0a 20 20 20 20 20 | 'rfoot'|:.. |
|00004d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00004d40| 6f 6e 65 4e 61 6d 65 20 | 3d 20 27 72 74 68 69 67 |oneName |= 'rthig|
|00004d50| 68 27 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |h';.. | |
|00004d60| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0d | | break;.|
|00004d70| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00004d80| 20 20 20 63 61 73 65 20 | 27 72 68 61 6e 64 27 3a | case |'rhand':|
|00004d90| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004da0| 20 20 20 20 20 20 62 6f | 6e 65 4e 61 6d 65 20 3d | bo|neName =|
|00004db0| 20 27 72 66 61 72 6d 27 | 3b 0d 0a 20 20 20 20 20 | 'rfarm'|;.. |
|00004dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00004dd0| 72 65 61 6b 3b 0d 0a 0d | 0a 20 20 20 20 20 20 20 |reak;...|. |
|00004de0| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 27 6c | | case 'l|
|00004df0| 68 61 6e 64 27 3a 0d 0a | 20 20 20 20 20 20 20 20 |hand':..| |
|00004e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 6f 6e 65 | | bone|
|00004e10| 4e 61 6d 65 20 3d 20 27 | 6c 66 61 72 6d 27 3b 0d |Name = '|lfarm';.|
|00004e20| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004e30| 20 20 20 20 20 62 72 65 | 61 6b 3b 0d 0a 0d 0a 20 | bre|ak;.... |
|00004e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|00004e50| 61 73 65 20 27 72 73 68 | 6f 75 6c 64 65 72 27 3a |ase 'rsh|oulder':|
|00004e60| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004e70| 20 20 63 61 73 65 20 27 | 6c 73 68 6f 75 6c 64 65 | case '|lshoulde|
|00004e80| 72 27 3a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |r':.. | |
|00004e90| 20 20 20 20 20 20 20 20 | 20 62 6f 6e 65 4e 61 6d | | boneNam|
|00004ea0| 65 20 3d 20 27 73 70 69 | 6e 65 27 3b 0d 0a 20 20 |e = 'spi|ne';.. |
|00004eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ec0| 20 20 62 72 65 61 6b 3b | 0d 0a 20 20 20 20 20 20 | break;|.. |
|00004ed0| 20 20 20 20 20 20 7d 0d | 0a 0d 0a 09 09 09 69 66 | }.|......if|
|00004ee0| 28 20 44 61 6d 61 67 65 | 54 79 70 65 2e 64 65 66 |( Damage|Type.def|
|00004ef0| 61 75 6c 74 2e 62 41 6c | 77 61 79 73 53 65 76 65 |ault.bAl|waysSeve|
|00004f00| 72 73 20 7c 7c 20 28 44 | 61 6d 61 67 65 20 3d 3d |rs || (D|amage ==|
|00004f10| 20 31 30 30 30 29 20 29 | 0d 0a 09 09 09 7b 0d 0a | 1000) )|.....{..|
|00004f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f30| 48 69 74 46 58 5b 48 69 | 74 46 78 54 69 63 6b 65 |HitFX[Hi|tFxTicke|
|00004f40| 72 5d 2e 62 53 65 76 65 | 72 20 3d 20 74 72 75 65 |r].bSeve|r = true|
|00004f50| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|00004f60| 20 20 20 69 66 20 28 20 | 62 6f 6e 65 4e 61 6d 65 | if ( |boneName|
|00004f70| 20 3d 3d 20 27 4e 6f 6e | 65 27 20 29 0d 0a 20 20 | == 'Non|e' ).. |
|00004f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0d | | {.|
|00004f90| 0a 09 09 09 09 09 62 6f | 6e 65 4e 61 6d 65 20 3d |......bo|neName =|
|00004fa0| 20 27 73 70 69 6e 65 27 | 3b 0d 0a 09 09 09 09 09 | 'spine'|;.......|
|00004fb0| 62 45 78 74 72 61 47 69 | 62 20 3d 20 74 72 75 65 |bExtraGi|b = true|
|00004fc0| 3b 0d 0a 09 09 09 09 7d | 0d 0a 09 09 09 7d 0d 0a |;......}|.....}..|
|00004fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|00004fe0| 20 69 66 28 20 28 44 61 | 6d 61 67 65 2a 44 61 6d | if( (Da|mage*Dam|
|00004ff0| 61 67 65 54 79 70 65 2e | 44 65 66 61 75 6c 74 2e |ageType.|Default.|
|00005000| 47 69 62 4d 6f 64 69 66 | 69 65 72 20 3e 20 35 30 |GibModif|ier > 50|
|00005010| 2b 31 32 30 2a 46 52 61 | 6e 64 28 29 29 20 26 26 |+120*FRa|nd()) &&|
|00005020| 20 28 44 61 6d 61 67 65 | 20 2b 20 48 65 61 6c 74 | (Damage| + Healt|
|00005030| 68 20 3e 20 30 29 20 29 | 20 2f 2f 20 74 6f 74 61 |h > 0) )| // tota|
|00005040| 6c 20 67 69 62 20 70 72 | 6f 62 0d 0a 09 09 09 7b |l gib pr|ob.....{|
|00005050| 0d 0a 09 09 09 09 48 69 | 74 46 58 5b 48 69 74 46 |......Hi|tFX[HitF|
|00005060| 78 54 69 63 6b 65 72 5d | 2e 62 53 65 76 65 72 20 |xTicker]|.bSever |
|00005070| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 09 62 6f 6e |= true;.|.....bon|
|00005080| 65 4e 61 6d 65 20 3d 20 | 27 73 70 69 6e 65 27 3b |eName = |'spine';|
|00005090| 0d 0a 09 09 09 09 62 45 | 78 74 72 61 47 69 62 20 |......bE|xtraGib |
|000050a0| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 7d 0d 0a 20 |= true;.|....}.. |
|000050b0| 20 20 20 20 20 20 20 20 | 20 20 20 65 6c 73 65 0d | | else.|
|000050c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 0d 0a |. | {..|
|000050d0| 09 20 20 20 20 20 20 20 | 20 20 20 20 20 44 69 73 |. | Dis|
|000050e0| 6d 65 6d 62 65 72 50 72 | 6f 62 61 62 69 6c 69 74 |memberPr|obabilit|
|000050f0| 79 20 3d 20 41 62 73 28 | 20 28 48 65 61 6c 74 68 |y = Abs(| (Health|
|00005100| 20 2d 20 44 61 6d 61 67 | 65 2a 44 61 6d 61 67 65 | - Damag|e*Damage|
|00005110| 54 79 70 65 2e 44 65 66 | 61 75 6c 74 2e 47 69 62 |Type.Def|ault.Gib|
|00005120| 4d 6f 64 69 66 69 65 72 | 29 20 2f 20 31 33 30 2e |Modifier|) / 130.|
|00005130| 30 66 20 29 3b 0d 0a 09 | 09 09 09 73 77 69 74 63 |0f );...|...switc|
|00005140| 68 28 20 62 6f 6e 65 4e | 61 6d 65 20 29 0d 0a 20 |h( boneN|ame ).. |
|00005150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|00005160| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005170| 20 20 20 20 20 20 63 61 | 73 65 20 27 6c 74 68 69 | ca|se 'lthi|
|00005180| 67 68 27 3a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |gh':.. | |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 63 61 73 65 20 27 | | case '|
|000051a0| 72 74 68 69 67 68 27 3a | 0d 0a 20 20 20 20 20 20 |rthigh':|.. |
|000051b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca|
|000051c0| 73 65 20 27 72 66 61 72 | 6d 27 3a 0d 0a 20 20 20 |se 'rfar|m':.. |
|000051d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051e0| 20 63 61 73 65 20 27 6c | 66 61 72 6d 27 3a 0d 0a | case 'l|farm':..|
|000051f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005200| 20 20 20 20 63 61 73 65 | 20 27 68 65 61 64 27 3a | case| 'head':|
|00005210| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005220| 20 20 20 20 20 20 20 20 | 20 20 69 66 28 20 46 52 | | if( FR|
|00005230| 61 6e 64 28 29 20 3c 20 | 44 69 73 6d 65 6d 62 65 |and() < |Dismembe|
|00005240| 72 50 72 6f 62 61 62 69 | 6c 69 74 79 20 29 0d 0a |rProbabi|lity )..|
|00005250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005260| 20 20 20 20 20 20 20 20 | 20 20 20 20 48 69 74 46 | | HitF|
|00005270| 58 5b 48 69 74 46 78 54 | 69 63 6b 65 72 5d 2e 62 |X[HitFxT|icker].b|
|00005280| 53 65 76 65 72 20 3d 20 | 74 72 75 65 3b 0d 0a 20 |Sever = |true;.. |
|00005290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052a0| 20 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0d 0a 0d | b|reak;...|
|000052b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000052c0| 20 20 20 20 20 63 61 73 | 65 20 27 4e 6f 6e 65 27 | cas|e 'None'|
|000052d0| 3a 0d 0a 20 09 09 09 09 | 09 09 62 6f 6e 65 4e 61 |:.. ....|..boneNa|
|000052e0| 6d 65 20 3d 20 27 73 70 | 69 6e 65 27 3b 0d 0a 20 |me = 'sp|ine';.. |
|000052f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005300| 20 20 20 20 63 61 73 65 | 20 27 73 70 69 6e 65 27 | case| 'spine'|
|00005310| 3a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:.. | |
|00005320| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 28 20 46 | | if( F|
|00005330| 52 61 6e 64 28 29 20 3c | 20 44 69 73 6d 65 6d 62 |Rand() <| Dismemb|
|00005340| 65 72 50 72 6f 62 61 62 | 69 6c 69 74 79 20 2a 20 |erProbab|ility * |
|00005350| 30 2e 33 20 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |0.3 ).. | |
|00005360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|00005370| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 48 69 | | Hi|
|00005390| 74 46 58 5b 48 69 74 46 | 78 54 69 63 6b 65 72 5d |tFX[HitF|xTicker]|
|000053a0| 2e 62 53 65 76 65 72 20 | 3d 20 74 72 75 65 3b 0d |.bSever |= true;.|
|000053b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000053c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|000053d0| 28 20 46 52 61 6e 64 28 | 29 20 3c 20 30 2e 36 35 |( FRand(|) < 0.65|
|000053e0| 20 29 0d 0a 09 09 09 09 | 09 09 09 09 62 45 78 74 | )......|....bExt|
|000053f0| 72 61 47 69 62 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |raGib = |true;...|
|00005400| 09 09 09 09 09 7d 0d 0a | 20 20 20 20 20 20 20 20 |.....}..| |
|00005410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005420| 62 72 65 61 6b 3b 0d 0a | 20 20 20 20 20 20 20 20 |break;..| |
|00005430| 20 20 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 20 | |}.. |
|00005440| 20 20 20 20 20 20 20 7d | 0d 0a 20 20 20 20 20 20 | }|.. |
|00005450| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 69 | }.... | i|
|00005460| 66 20 28 20 44 61 6d 61 | 67 65 54 79 70 65 2e 64 |f ( Dama|geType.d|
|00005470| 65 66 61 75 6c 74 2e 62 | 4e 65 76 65 72 53 65 76 |efault.b|NeverSev|
|00005480| 65 72 73 20 7c 7c 20 63 | 6c 61 73 73 27 47 61 6d |ers || c|lass'Gam|
|00005490| 65 49 6e 66 6f 27 2e 73 | 74 61 74 69 63 2e 55 73 |eInfo'.s|tatic.Us|
|000054a0| 65 4c 6f 77 47 6f 72 65 | 28 29 0d 0a 09 20 20 20 |eLowGore|()... |
|000054b0| 20 20 7c 7c 20 28 4c 65 | 76 65 6c 2e 47 61 6d 65 | || (Le|vel.Game|
|000054c0| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 4c 65 76 65 | != None| && Leve|
|000054d0| 6c 2e 47 61 6d 65 2e 50 | 72 65 76 65 6e 74 53 65 |l.Game.P|reventSe|
|000054e0| 76 65 72 28 73 65 6c 66 | 2c 20 62 6f 6e 65 4e 61 |ver(self|, boneNa|
|000054f0| 6d 65 2c 20 44 61 6d 61 | 67 65 2c 20 44 61 6d 61 |me, Dama|ge, Dama|
|00005500| 67 65 54 79 70 65 29 29 | 20 29 0d 0a 20 20 20 20 |geType))| ).. |
|00005510| 20 20 20 20 7b 0d 0a 09 | 09 48 69 74 46 58 5b 48 | {...|.HitFX[H|
|00005520| 69 74 46 78 54 69 63 6b | 65 72 5d 2e 62 53 65 76 |itFxTick|er].bSev|
|00005530| 65 72 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 09 62 |er = fal|se;....b|
|00005540| 45 78 74 72 61 47 69 62 | 20 3d 20 66 61 6c 73 65 |ExtraGib| = false|
|00005550| 3b 0d 0a 09 7d 0d 0a 0d | 0a 20 20 20 20 20 20 20 |;...}...|. |
|00005560| 20 48 69 74 46 58 5b 48 | 69 74 46 78 54 69 63 6b | HitFX[H|itFxTick|
|00005570| 65 72 5d 2e 62 6f 6e 65 | 20 3d 20 62 6f 6e 65 4e |er].bone| = boneN|
|00005580| 61 6d 65 3b 0d 0a 20 20 | 20 20 20 20 20 20 48 69 |ame;.. | Hi|
|00005590| 74 46 58 5b 48 69 74 46 | 78 54 69 63 6b 65 72 5d |tFX[HitF|xTicker]|
|000055a0| 2e 72 6f 74 44 69 72 20 | 3d 20 72 3b 0d 0a 20 20 |.rotDir |= r;.. |
|000055b0| 20 20 20 20 20 20 48 69 | 74 46 78 54 69 63 6b 65 | Hi|tFxTicke|
|000055c0| 72 20 3d 20 48 69 74 46 | 78 54 69 63 6b 65 72 20 |r = HitF|xTicker |
|000055d0| 2b 20 31 3b 0d 0a 20 20 | 20 20 20 20 20 20 69 66 |+ 1;.. | if|
|000055e0| 28 20 48 69 74 46 78 54 | 69 63 6b 65 72 20 3e 20 |( HitFxT|icker > |
|000055f0| 41 72 72 61 79 43 6f 75 | 6e 74 28 48 69 74 46 58 |ArrayCou|nt(HitFX|
|00005600| 29 2d 31 20 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |)-1 ).. | |
|00005610| 20 20 20 48 69 74 46 78 | 54 69 63 6b 65 72 20 3d | HitFx|Ticker =|
|00005620| 20 30 3b 0d 0a 20 20 20 | 20 20 20 20 20 69 66 20 | 0;.. | if |
|00005630| 28 20 62 45 78 74 72 61 | 47 69 62 20 29 0d 0a 20 |( bExtra|Gib ).. |
|00005640| 20 20 20 20 20 20 20 7b | 0d 0a 09 09 69 66 20 28 | {|....if (|
|00005650| 20 46 52 61 6e 64 28 29 | 20 3c 20 30 2e 32 35 20 | FRand()| < 0.25 |
|00005660| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 44 6f 44 61 6d |)....{..|...DoDam|
|00005670| 61 67 65 46 58 28 27 6c | 74 68 69 67 68 27 2c 31 |ageFX('l|thigh',1|
|00005680| 30 30 30 2c 44 61 6d 61 | 67 65 54 79 70 65 2c 72 |000,Dama|geType,r|
|00005690| 29 3b 0d 0a 09 09 09 44 | 6f 44 61 6d 61 67 65 46 |);.....D|oDamageF|
|000056a0| 58 28 27 72 74 68 69 67 | 68 27 2c 31 30 30 30 2c |X('rthig|h',1000,|
|000056b0| 44 61 6d 61 67 65 54 79 | 70 65 2c 72 29 3b 0d 0a |DamageTy|pe,r);..|
|000056c0| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 20 69 66 20 28 |..}....e|lse if (|
|000056d0| 20 46 52 61 6e 64 28 29 | 20 3c 20 30 2e 33 35 20 | FRand()| < 0.35 |
|000056e0| 29 0d 0a 09 09 09 44 6f | 44 61 6d 61 67 65 46 58 |).....Do|DamageFX|
|000056f0| 28 27 6c 74 68 69 67 68 | 27 2c 31 30 30 30 2c 44 |('lthigh|',1000,D|
|00005700| 61 6d 61 67 65 54 79 70 | 65 2c 72 29 3b 0d 0a 09 |amageTyp|e,r);...|
|00005710| 09 65 6c 73 65 20 69 66 | 20 28 20 46 52 61 6e 64 |.else if| ( FRand|
|00005720| 28 29 20 3c 20 30 2e 35 | 20 29 0d 0a 09 09 09 44 |() < 0.5| ).....D|
|00005730| 6f 44 61 6d 61 67 65 46 | 58 28 27 72 74 68 69 67 |oDamageF|X('rthig|
|00005740| 68 27 2c 31 30 30 30 2c | 44 61 6d 61 67 65 54 79 |h',1000,|DamageTy|
|00005750| 70 65 2c 72 29 3b 0d 0a | 09 7d 0d 0a 20 20 20 20 |pe,r);..|.}.. |
|00005760| 7d 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |}..}....|simulate|
|00005770| 64 20 66 75 6e 63 74 69 | 6f 6e 20 53 74 61 72 74 |d functi|on Start|
|00005780| 44 65 52 65 73 28 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |DeRes().|.{...loc|
|00005790| 61 6c 20 4b 61 72 6d 61 | 50 61 72 61 6d 73 53 6b |al Karma|ParamsSk|
|000057a0| 65 6c 20 73 6b 65 6c 50 | 61 72 61 6d 73 3b 0d 0a |el skelP|arams;..|
|000057b0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 0d |.local i|nt i;...|
|000057c0| 0a 20 20 20 20 69 66 28 | 20 4c 65 76 65 6c 2e 4e |. if(| Level.N|
|000057d0| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 44 65 64 |etMode =|= NM_Ded|
|000057e0| 69 63 61 74 65 64 53 65 | 72 76 65 72 20 29 0d 0a |icatedSe|rver )..|
|000057f0| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 3b 0d | |return;.|
|00005800| 0a 0d 0a 09 41 6d 62 69 | 65 6e 74 47 6c 6f 77 3d |....Ambi|entGlow=|
|00005810| 32 35 34 3b 0d 0a 09 4d | 61 78 4c 69 67 68 74 73 |254;...M|axLights|
|00005820| 3d 30 3b 0d 0a 0d 0a 09 | 44 65 52 65 73 46 58 20 |=0;.....|DeResFX |
|00005830| 3d 20 53 70 61 77 6e 28 | 63 6c 61 73 73 27 44 65 |= Spawn(|class'De|
|00005840| 52 65 73 50 61 72 74 27 | 2c 20 73 65 6c 66 2c 20 |ResPart'|, self, |
|00005850| 2c 20 4c 6f 63 61 74 69 | 6f 6e 29 3b 0d 0a 09 69 |, Locati|on);...i|
|00005860| 66 20 28 20 44 65 52 65 | 73 46 58 20 21 3d 20 4e |f ( DeRe|sFX != N|
|00005870| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 44 65 52 |one )...|{....DeR|
|00005880| 65 73 46 58 2e 45 6d 69 | 74 74 65 72 73 5b 30 5d |esFX.Emi|tters[0]|
|00005890| 2e 53 6b 65 6c 65 74 61 | 6c 4d 65 73 68 41 63 74 |.Skeleta|lMeshAct|
|000058a0| 6f 72 20 3d 20 73 65 6c | 66 3b 0d 0a 09 09 44 65 |or = sel|f;....De|
|000058b0| 52 65 73 46 58 2e 53 65 | 74 42 61 73 65 28 73 65 |ResFX.Se|tBase(se|
|000058c0| 6c 66 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 53 6b 69 |lf);...}|.....Ski|
|000058d0| 6e 73 5b 30 5d 20 3d 20 | 44 65 52 65 73 4d 61 74 |ns[0] = |DeResMat|
|000058e0| 30 3b 0d 0a 09 53 6b 69 | 6e 73 5b 31 5d 20 3d 20 |0;...Ski|ns[1] = |
|000058f0| 44 65 52 65 73 4d 61 74 | 31 3b 0d 0a 09 69 66 20 |DeResMat|1;...if |
|00005900| 28 20 53 6b 69 6e 73 2e | 4c 65 6e 67 74 68 20 3e |( Skins.|Length >|
|00005910| 20 32 20 29 0d 0a 09 7b | 0d 0a 09 09 66 6f 72 20 | 2 )...{|....for |
|00005920| 28 20 69 3d 32 3b 20 69 | 3c 53 6b 69 6e 73 2e 4c |( i=2; i|<Skins.L|
|00005930| 65 6e 67 74 68 3b 20 69 | 2b 2b 20 29 0d 0a 09 09 |ength; i|++ )....|
|00005940| 09 53 6b 69 6e 73 5b 69 | 5d 20 3d 20 44 65 52 65 |.Skins[i|] = DeRe|
|00005950| 73 4d 61 74 30 3b 0d 0a | 09 7d 0d 0a 0d 0a 20 20 |sMat0;..|.}.... |
|00005960| 20 20 69 66 28 20 50 68 | 79 73 69 63 73 20 3d 3d | if( Ph|ysics ==|
|00005970| 20 50 48 59 53 5f 4b 61 | 72 6d 61 52 61 67 64 6f | PHYS_Ka|rmaRagdo|
|00005980| 6c 6c 20 29 0d 0a 20 20 | 20 20 7b 0d 0a 09 09 2f |ll ).. | {..../|
|00005990| 2f 20 41 74 74 61 63 68 | 20 62 6f 6e 65 20 6c 69 |/ Attach| bone li|
|000059a0| 66 74 65 72 20 74 6f 20 | 72 61 69 73 65 20 62 6f |fter to |raise bo|
|000059b0| 64 79 0d 0a 20 20 20 20 | 20 20 20 20 4b 41 64 64 |dy.. | KAdd|
|000059c0| 42 6f 6e 65 4c 69 66 74 | 65 72 28 27 62 69 70 30 |BoneLift|er('bip0|
|000059d0| 31 20 53 70 69 6e 65 27 | 2c 20 44 65 52 65 73 4c |1 Spine'|, DeResL|
|000059e0| 69 66 74 56 65 6c 2c 20 | 44 65 52 65 73 4c 61 74 |iftVel, |DeResLat|
|000059f0| 65 72 61 6c 46 72 69 63 | 74 69 6f 6e 2c 20 44 65 |eralFric|tion, De|
|00005a00| 52 65 73 4c 69 66 74 53 | 6f 66 74 6e 65 73 73 29 |ResLiftS|oftness)|
|00005a10| 3b 0d 0a 20 20 20 20 20 | 20 20 20 4b 41 64 64 42 |;.. | KAddB|
|00005a20| 6f 6e 65 4c 69 66 74 65 | 72 28 27 62 69 70 30 31 |oneLifte|r('bip01|
|00005a30| 20 53 70 69 6e 65 32 27 | 2c 20 44 65 52 65 73 4c | Spine2'|, DeResL|
|00005a40| 69 66 74 56 65 6c 2c 20 | 44 65 52 65 73 4c 61 74 |iftVel, |DeResLat|
|00005a50| 65 72 61 6c 46 72 69 63 | 74 69 6f 6e 2c 20 44 65 |eralFric|tion, De|
|00005a60| 52 65 73 4c 69 66 74 53 | 6f 66 74 6e 65 73 73 29 |ResLiftS|oftness)|
|00005a70| 3b 0d 0a 0d 0a 09 09 2f | 2f 20 54 75 72 6e 20 6f |;....../|/ Turn o|
|00005a80| 66 66 20 67 72 61 76 69 | 74 79 20 77 68 69 6c 65 |ff gravi|ty while|
|00005a90| 20 64 65 2d 72 65 73 2d | 69 6e 67 0d 0a 09 09 4b | de-res-|ing....K|
|00005aa0| 53 65 74 41 63 74 6f 72 | 47 72 61 76 53 63 61 6c |SetActor|GravScal|
|00005ab0| 65 28 44 65 52 65 73 47 | 72 61 76 53 63 61 6c 65 |e(DeResG|ravScale|
|00005ac0| 29 3b 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 2f 2f |);.... | //|
|00005ad0| 20 54 75 72 6e 20 6f 66 | 66 20 63 6f 6c 6c 69 73 | Turn of|f collis|
|00005ae0| 69 6f 6e 20 77 69 74 68 | 20 74 68 65 20 77 6f 72 |ion with| the wor|
|00005af0| 6c 64 20 66 6f 72 20 74 | 68 65 20 72 61 67 64 6f |ld for t|he ragdo|
|00005b00| 6c 6c 2e 0d 0a 20 20 20 | 20 20 20 20 20 4b 53 65 |ll... | KSe|
|00005b10| 74 42 6c 6f 63 6b 4b 61 | 72 6d 61 28 66 61 6c 73 |tBlockKa|rma(fals|
|00005b20| 65 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 2f |e);.... | /|
|00005b30| 2f 20 54 75 72 6e 20 6f | 66 66 20 63 6f 6e 76 75 |/ Turn o|ff convu|
|00005b40| 6c 73 69 6f 6e 73 20 64 | 75 72 69 6e 67 20 64 65 |lsions d|uring de|
|00005b50| 2d 72 65 73 0d 0a 20 20 | 20 20 20 20 20 20 73 6b |-res.. | sk|
|00005b60| 65 6c 50 61 72 61 6d 73 | 20 3d 20 4b 61 72 6d 61 |elParams| = Karma|
|00005b70| 50 61 72 61 6d 73 53 6b | 65 6c 28 4b 50 61 72 61 |ParamsSk|el(KPara|
|00005b80| 6d 73 29 3b 0d 0a 09 09 | 73 6b 65 6c 50 61 72 61 |ms);....|skelPara|
|00005b90| 6d 73 2e 62 4b 44 6f 43 | 6f 6e 76 75 6c 73 69 6f |ms.bKDoC|onvulsio|
|00005ba0| 6e 73 20 3d 20 66 61 6c | 73 65 3b 0d 0a 20 20 20 |ns = fal|se;.. |
|00005bb0| 20 7d 0d 0a 0d 0a 20 20 | 20 20 41 6d 62 69 65 6e | }.... | Ambien|
|00005bc0| 74 53 6f 75 6e 64 20 3d | 20 53 6f 75 6e 64 27 47 |tSound =| Sound'G|
|00005bd0| 65 6e 65 72 61 6c 41 6d | 62 69 65 6e 63 65 2e 54 |eneralAm|bience.T|
|00005be0| 65 78 74 75 72 65 31 39 | 27 3b 0d 0a 20 20 20 20 |exture19|';.. |
|00005bf0| 53 6f 75 6e 64 52 61 64 | 69 75 73 20 3d 20 34 30 |SoundRad|ius = 40|
|00005c00| 2e 30 3b 0d 0a 0d 0a 09 | 2f 2f 20 54 75 72 6e 20 |.0;.....|// Turn |
|00005c10| 6f 66 66 20 63 6f 6c 6c | 69 73 69 6f 6e 20 77 68 |off coll|ision wh|
|00005c20| 65 6e 20 77 65 20 64 65 | 2d 72 65 73 20 28 61 76 |en we de|-res (av|
|00005c30| 6f 69 64 73 20 72 6f 63 | 6b 65 74 73 20 65 74 63 |oids roc|kets etc|
|00005c40| 2e 20 68 69 74 74 69 6e | 67 20 63 6f 72 70 73 65 |. hittin|g corpse|
|00005c50| 21 29 0d 0a 09 53 65 74 | 43 6f 6c 6c 69 73 69 6f |!)...Set|Collisio|
|00005c60| 6e 28 66 61 6c 73 65 2c | 20 66 61 6c 73 65 2c 20 |n(false,| false, |
|00005c70| 66 61 6c 73 65 29 3b 0d | 0a 0d 0a 09 2f 2f 20 52 |false);.|....// R|
|00005c80| 65 6d 6f 76 65 2f 64 69 | 73 61 6c 6c 6f 77 20 70 |emove/di|sallow p|
|00005c90| 72 6f 6a 65 63 74 6f 72 | 73 0d 0a 09 50 72 6f 6a |rojector|s...Proj|
|00005ca0| 65 63 74 6f 72 73 2e 52 | 65 6d 6f 76 65 28 30 2c |ectors.R|emove(0,|
|00005cb0| 20 50 72 6f 6a 65 63 74 | 6f 72 73 2e 4c 65 6e 67 | Project|ors.Leng|
|00005cc0| 74 68 29 3b 0d 0a 09 62 | 41 63 63 65 70 74 73 50 |th);...b|AcceptsP|
|00005cd0| 72 6f 6a 65 63 74 6f 72 | 73 20 3d 20 66 61 6c 73 |rojector|s = fals|
|00005ce0| 65 3b 0d 0a 0d 0a 09 2f | 2f 20 52 65 6d 6f 76 65 |e;...../|/ Remove|
|00005cf0| 20 73 68 61 64 6f 77 0d | 0a 09 69 66 28 50 6c 61 | shadow.|..if(Pla|
|00005d00| 79 65 72 53 68 61 64 6f | 77 20 21 3d 20 4e 6f 6e |yerShado|w != Non|
|00005d10| 65 29 0d 0a 09 09 50 6c | 61 79 65 72 53 68 61 64 |e)....Pl|ayerShad|
|00005d20| 6f 77 2e 62 53 68 61 64 | 6f 77 41 63 74 69 76 65 |ow.bShad|owActive|
|00005d30| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 0d 0a 09 2f 2f | = false|;.....//|
|00005d40| 20 52 65 6d 6f 76 65 20 | 66 6c 61 6d 65 73 0d 0a | Remove |flames..|
|00005d50| 09 52 65 6d 6f 76 65 46 | 6c 61 6d 69 6e 67 45 66 |.RemoveF|lamingEf|
|00005d60| 66 65 63 74 73 28 29 3b | 0d 0a 0d 0a 09 2f 2f 20 |fects();|.....// |
|00005d70| 54 75 72 6e 20 6f 66 66 | 20 61 6e 79 20 6f 76 65 |Turn off| any ove|
|00005d80| 72 6c 61 79 73 0d 0a 09 | 53 65 74 4f 76 65 72 6c |rlays...|SetOverl|
|00005d90| 61 79 4d 61 74 65 72 69 | 61 6c 28 4e 6f 6e 65 2c |ayMateri|al(None,|
|00005da0| 20 30 2e 30 66 2c 20 74 | 72 75 65 29 3b 0d 0a 0d | 0.0f, t|rue);...|
|00005db0| 0a 20 20 20 20 62 44 65 | 52 65 73 20 3d 20 74 72 |. bDe|Res = tr|
|00005dc0| 75 65 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |ue;..}..|..simula|
|00005dd0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 53 65 74 |ted func|tion Set|
|00005de0| 4f 76 65 72 6c 61 79 4d | 61 74 65 72 69 61 6c 28 |OverlayM|aterial(|
|00005df0| 20 4d 61 74 65 72 69 61 | 6c 20 6d 61 74 2c 20 66 | Materia|l mat, f|
|00005e00| 6c 6f 61 74 20 74 69 6d | 65 2c 20 62 6f 6f 6c 20 |loat tim|e, bool |
|00005e10| 62 4f 76 65 72 72 69 64 | 65 20 29 0d 0a 7b 0d 0a |bOverrid|e )..{..|
|00005e20| 09 69 66 20 28 20 4c 65 | 76 65 6c 2e 62 44 72 6f |.if ( Le|vel.bDro|
|00005e30| 70 44 65 74 61 69 6c 20 | 7c 7c 20 4c 65 76 65 6c |pDetail ||| Level|
|00005e40| 2e 44 65 74 61 69 6c 4d | 6f 64 65 20 3d 3d 20 44 |.DetailM|ode == D|
|00005e50| 4d 5f 4c 6f 77 20 29 0d | 0a 09 09 74 69 6d 65 20 |M_Low ).|...time |
|00005e60| 2a 3d 20 30 2e 37 35 3b | 0d 0a 09 53 75 70 65 72 |*= 0.75;|...Super|
|00005e70| 2e 53 65 74 4f 76 65 72 | 6c 61 79 4d 61 74 65 72 |.SetOver|layMater|
|00005e80| 69 61 6c 28 6d 61 74 2c | 74 69 6d 65 2c 62 4f 76 |ial(mat,|time,bOv|
|00005e90| 65 72 72 69 64 65 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |erride);|..}....s|
|00005ea0| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00005eb0| 6e 20 54 69 63 6b 44 65 | 52 65 73 28 66 6c 6f 61 |n TickDe|Res(floa|
|00005ec0| 74 20 44 65 6c 74 61 54 | 69 6d 65 29 0d 0a 7b 0d |t DeltaT|ime)..{.|
|00005ed0| 0a 09 69 66 28 4c 69 66 | 65 53 70 61 6e 20 3c 20 |..if(Lif|eSpan < |
|00005ee0| 33 2e 30 29 0d 0a 09 7b | 0d 0a 09 09 41 6d 62 69 |3.0)...{|....Ambi|
|00005ef0| 65 6e 74 47 6c 6f 77 20 | 3d 20 42 59 54 45 28 32 |entGlow |= BYTE(2|
|00005f00| 35 34 2e 30 20 2a 20 28 | 4c 69 66 65 53 70 61 6e |54.0 * (|LifeSpan|
|00005f10| 20 2f 20 33 2e 30 29 29 | 3b 20 2f 2f 20 53 63 61 | / 3.0))|; // Sca|
|00005f20| 6c 65 20 64 6f 77 6e 20 | 6f 76 65 72 20 74 69 6d |le down |over tim|
|00005f30| 65 2e 0d 0a 09 09 2f 2f | 53 63 61 6c 65 47 6c 6f |e.....//|ScaleGlo|
|00005f40| 77 20 3d 20 31 2e 30 20 | 2a 20 28 4c 69 66 65 53 |w = 1.0 |* (LifeS|
|00005f50| 70 61 6e 20 2f 20 33 2e | 30 29 3b 20 2f 2f 20 53 |pan / 3.|0); // S|
|00005f60| 63 61 6c 65 20 64 6f 77 | 6e 20 6f 76 65 72 20 74 |cale dow|n over t|
|00005f70| 69 6d 65 2e 0d 0a 09 09 | 2f 2f 4c 6f 67 28 22 53 |ime.....|//Log("S|
|00005f80| 47 3a 22 24 53 63 61 6c | 65 47 6c 6f 77 24 22 20 |G:"$Scal|eGlow$" |
|00005f90| 41 47 3a 22 24 41 6d 62 | 69 65 6e 74 47 6c 6f 77 |AG:"$Amb|ientGlow|
|00005fa0| 29 3b 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |);...}..|}....sim|
|00005fb0| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|00005fc0| 54 69 63 6b 28 66 6c 6f | 61 74 20 44 65 6c 74 61 |Tick(flo|at Delta|
|00005fd0| 54 69 6d 65 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |Time)..{|...if ( |
|00005fe0| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 20 3d 3d |Level.Ne|tMode ==|
|00005ff0| 20 4e 4d 5f 44 65 64 69 | 63 61 74 65 64 53 65 72 | NM_Dedi|catedSer|
|00006000| 76 65 72 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 3b |ver )...|.return;|
|00006010| 0d 0a 09 69 66 20 28 20 | 43 6f 6e 74 72 6f 6c 6c |...if ( |Controll|
|00006020| 65 72 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |er != No|ne )....|
|00006030| 4f 6c 64 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 3d 20 |OldContr|oller = |
|00006040| 43 6f 6e 74 72 6f 6c 6c | 65 72 3b 0d 0a 0d 0a 20 |Controll|er;.... |
|00006050| 20 20 20 54 69 63 6b 46 | 58 28 44 65 6c 74 61 54 | TickF|X(DeltaT|
|00006060| 69 6d 65 29 3b 0d 0a 0d | 0a 20 20 20 20 69 66 20 |ime);...|. if |
|00006070| 28 20 62 44 65 52 65 73 | 20 29 0d 0a 20 20 20 20 |( bDeRes| ).. |
|00006080| 20 20 20 20 54 69 63 6b | 44 65 52 65 73 28 44 65 | Tick|DeRes(De|
|00006090| 6c 74 61 54 69 6d 65 29 | 3b 0d 0a 7d 0d 0a 0d 0a |ltaTime)|;..}....|
|000060a0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000060b0| 6f 6e 20 50 6f 73 74 42 | 65 67 69 6e 50 6c 61 79 |on PostB|eginPlay|
|000060c0| 28 29 0d 0a 7b 0d 0a 20 | 20 20 20 53 75 70 65 72 |()..{.. | Super|
|000060d0| 2e 50 6f 73 74 42 65 67 | 69 6e 50 6c 61 79 28 29 |.PostBeg|inPlay()|
|000060e0| 3b 0d 0a 20 20 20 20 41 | 73 73 69 67 6e 49 6e 69 |;.. A|ssignIni|
|000060f0| 74 69 61 6c 50 6f 73 65 | 28 29 3b 0d 0a 0d 0a 20 |tialPose|();.... |
|00006100| 20 20 20 69 66 28 62 41 | 63 74 6f 72 53 68 61 64 | if(bA|ctorShad|
|00006110| 6f 77 73 20 26 26 20 62 | 50 6c 61 79 65 72 53 68 |ows && b|PlayerSh|
|00006120| 61 64 6f 77 73 20 26 26 | 20 28 4c 65 76 65 6c 2e |adows &&| (Level.|
|00006130| 4e 65 74 4d 6f 64 65 20 | 21 3d 20 4e 4d 5f 44 65 |NetMode |!= NM_De|
|00006140| 64 69 63 61 74 65 64 53 | 65 72 76 65 72 29 29 0d |dicatedS|erver)).|
|00006150| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |. {..| |
|00006160| 50 6c 61 79 65 72 53 68 | 61 64 6f 77 20 3d 20 53 |PlayerSh|adow = S|
|00006170| 70 61 77 6e 28 63 6c 61 | 73 73 27 53 68 61 64 6f |pawn(cla|ss'Shado|
|00006180| 77 50 72 6f 6a 65 63 74 | 6f 72 27 2c 53 65 6c 66 |wProject|or',Self|
|00006190| 2c 27 27 2c 4c 6f 63 61 | 74 69 6f 6e 29 3b 0d 0a |,'',Loca|tion);..|
|000061a0| 20 20 20 20 20 20 20 20 | 50 6c 61 79 65 72 53 68 | |PlayerSh|
|000061b0| 61 64 6f 77 2e 53 68 61 | 64 6f 77 41 63 74 6f 72 |adow.Sha|dowActor|
|000061c0| 20 3d 20 73 65 6c 66 3b | 0d 0a 20 20 20 20 20 20 | = self;|.. |
|000061d0| 20 20 50 6c 61 79 65 72 | 53 68 61 64 6f 77 2e 62 | Player|Shadow.b|
|000061e0| 42 6c 6f 62 53 68 61 64 | 6f 77 20 3d 20 62 42 6c |BlobShad|ow = bBl|
|000061f0| 6f 62 53 68 61 64 6f 77 | 3b 0d 0a 20 20 20 20 20 |obShadow|;.. |
|00006200| 20 20 20 50 6c 61 79 65 | 72 53 68 61 64 6f 77 2e | Playe|rShadow.|
|00006210| 4c 69 67 68 74 44 69 72 | 65 63 74 69 6f 6e 20 3d |LightDir|ection =|
|00006220| 20 4e 6f 72 6d 61 6c 28 | 76 65 63 74 28 31 2c 31 | Normal(|vect(1,1|
|00006230| 2c 33 29 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 50 |,3));.. | P|
|00006240| 6c 61 79 65 72 53 68 61 | 64 6f 77 2e 4c 69 67 68 |layerSha|dow.Ligh|
|00006250| 74 44 69 73 74 61 6e 63 | 65 20 3d 20 33 32 30 3b |tDistanc|e = 320;|
|00006260| 0d 0a 20 20 20 20 20 20 | 20 20 50 6c 61 79 65 72 |.. | Player|
|00006270| 53 68 61 64 6f 77 2e 4d | 61 78 54 72 61 63 65 44 |Shadow.M|axTraceD|
|00006280| 69 73 74 61 6e 63 65 20 | 3d 20 33 35 30 3b 0d 0a |istance |= 350;..|
|00006290| 20 20 20 20 20 20 20 20 | 50 6c 61 79 65 72 53 68 | |PlayerSh|
|000062a0| 61 64 6f 77 2e 49 6e 69 | 74 53 68 61 64 6f 77 28 |adow.Ini|tShadow(|
|000062b0| 29 3b 0d 0a 20 20 20 20 | 7d 0d 0a 09 62 43 61 6e |);.. |}...bCan|
|000062c0| 44 6f 75 62 6c 65 4a 75 | 6d 70 20 3d 20 43 61 6e |DoubleJu|mp = Can|
|000062d0| 4d 75 6c 74 69 4a 75 6d | 70 28 29 3b 0d 0a 7d 0d |MultiJum|p();..}.|
|000062e0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 69 6e 74 20 |...funct|ion int |
|000062f0| 53 68 69 65 6c 64 41 62 | 73 6f 72 62 28 20 69 6e |ShieldAb|sorb( in|
|00006300| 74 20 64 61 6d 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |t dam ).|.{...loc|
|00006310| 61 6c 20 66 6c 6f 61 74 | 20 49 6e 74 65 72 76 61 |al float| Interva|
|00006320| 6c 2c 20 64 61 6d 61 67 | 65 2c 20 52 65 6d 61 69 |l, damag|e, Remai|
|00006330| 6e 69 6e 67 3b 0d 0a 0d | 0a 09 64 61 6d 61 67 65 |ning;...|..damage|
|00006340| 20 3d 20 64 61 6d 3b 0d | 0a 09 0d 0a 20 20 20 20 | = dam;.|.... |
|00006350| 69 66 20 28 20 53 68 69 | 65 6c 64 53 74 72 65 6e |if ( Shi|eldStren|
|00006360| 67 74 68 20 3d 3d 20 30 | 20 29 0d 0a 20 20 20 20 |gth == 0| ).. |
|00006370| 7b 0d 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |{.. | retur|
|00006380| 6e 20 64 61 6d 61 67 65 | 3b 0d 0a 20 20 20 20 7d |n damage|;.. }|
|00006390| 0d 0a 09 53 65 74 4f 76 | 65 72 6c 61 79 4d 61 74 |...SetOv|erlayMat|
|000063a0| 65 72 69 61 6c 28 20 53 | 68 69 65 6c 64 48 69 74 |erial( S|hieldHit|
|000063b0| 4d 61 74 2c 20 53 68 69 | 65 6c 64 48 69 74 4d 61 |Mat, Shi|eldHitMa|
|000063c0| 74 54 69 6d 65 2c 20 66 | 61 6c 73 65 20 29 3b 0d |tTime, f|alse );.|
|000063d0| 0a 09 50 6c 61 79 53 6f | 75 6e 64 28 73 6f 75 6e |..PlaySo|und(soun|
|000063e0| 64 27 57 65 61 70 6f 6e | 53 6f 75 6e 64 73 2e 41 |d'Weapon|Sounds.A|
|000063f0| 72 6d 6f 72 48 69 74 27 | 2c 20 53 4c 4f 54 5f 50 |rmorHit'|, SLOT_P|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.